fixed typos for the doc examples

This commit is contained in:
ZennDev1337 2023-09-21 10:13:45 +02:00
parent ce74ee7c14
commit 7c8901e213

View file

@ -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