fixed typos for the doc examples
This commit is contained in:
parent
ce74ee7c14
commit
7c8901e213
1 changed files with 4 additions and 4 deletions
|
@ -70,13 +70,13 @@ pub fn end() {
|
||||||
/// Reads incoming serial data.
|
/// Reads incoming serial data.
|
||||||
/// Use only inside of [available()]:
|
/// Use only inside of [available()]:
|
||||||
/// ```
|
/// ```
|
||||||
/// if (Serial::available() > 0) {
|
/// if (serial::available() > 0) {
|
||||||
/// // read the incoming byte:
|
/// // read the incoming byte:
|
||||||
/// let incomingByte: i16 = Serial::read();
|
/// let incoming_byte: i16 = Serial::read();
|
||||||
///
|
///
|
||||||
/// // say what you got:
|
/// // say what you got:
|
||||||
/// Serial::print("I received: ");
|
/// serial::print("I received: ");
|
||||||
/// Serial::println(incomingByte);
|
/// serial::println(incoming_byte);
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
/// ### Returns
|
/// ### Returns
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue