mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-14 16:03:41 +00:00
all: format code according to Go 1.19 rules
Go 1.19 started reformatting code in a way that makes it more obvious how it will be rendered on pkg.go.dev. It gets it almost right, but not entirely. Therefore, I had to modify some of the comments so that they are formatted correctly.
This commit is contained in:
@@ -188,8 +188,10 @@ func (uart *UART) WriteByte(c byte) error {
|
||||
//
|
||||
// This is an integral (non-floating point) translation of the logic at the
|
||||
// beginning of:
|
||||
// void HardwareSerial::begin(uint32_t baud, uint16_t format)
|
||||
// (from Teensyduino: `cores/teensy4/HardwareSerial.cpp`)
|
||||
//
|
||||
// void HardwareSerial::begin(uint32_t baud, uint16_t format)
|
||||
//
|
||||
// (from Teensyduino: cores/teensy4/HardwareSerial.cpp)
|
||||
//
|
||||
// We don't want to use floating point here in case it gets called from an ISR
|
||||
// or very early during system init.
|
||||
|
||||
Reference in New Issue
Block a user