diff --git a/src/bare-metal/aps/examples/src/main_improved.rs b/src/bare-metal/aps/examples/src/main_improved.rs index b31e4950..b1e3c17c 100644 --- a/src/bare-metal/aps/examples/src/main_improved.rs +++ b/src/bare-metal/aps/examples/src/main_improved.rs @@ -38,9 +38,9 @@ extern "C" fn main(x0: u64, x1: u64, x2: u64, x3: u64) { writeln!(uart, "main({x0:#x}, {x1:#x}, {x2:#x}, {x3:#x})").unwrap(); loop { - if let Some(b) = uart.read_byte() { - uart.write_byte(b); - match b { + if let Some(byte) = uart.read_byte() { + uart.write_byte(byte); + match byte { b'\r' => { uart.write_byte(b'\n'); }