diff --git a/docs/reference/serial/read-string.md b/docs/reference/serial/read-string.md index ee449ed2..281d0eef 100644 --- a/docs/reference/serial/read-string.md +++ b/docs/reference/serial/read-string.md @@ -1,6 +1,6 @@ # Serial Read String -Read the buffered serial data as a string +Read the buffered serial data as a string. ```sig serial.readString(); @@ -8,7 +8,7 @@ serial.readString(); ## Returns -* a [string](/types/string) containing input from the serial port. Empty if no data available. +* a [string](/types/string) containing input from the serial port. The string is empty if no data is available. ## Example diff --git a/libs/core/serial.cpp b/libs/core/serial.cpp index a01813db..b201660a 100644 --- a/libs/core/serial.cpp +++ b/libs/core/serial.cpp @@ -75,6 +75,7 @@ namespace serial { /** * Reads the buffered received data as a string */ + //% help=serial/read-string //% blockId=serial_read_buffer block="serial|read string" //% weight=18 StringData* readString() {