You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-08-09 16:58:19 +02:00
Reduce vertical space slightly in UART examples (#2407)
Co-authored-by: Dustin J. Mitchell <djmitche@google.com>
This commit is contained in:
@ -42,9 +42,7 @@ extern "C" fn main(x0: u64, x1: u64, x2: u64, x3: u64) {
|
||||
if let Some(byte) = uart.read_byte() {
|
||||
uart.write_byte(byte);
|
||||
match byte {
|
||||
b'\r' => {
|
||||
uart.write_byte(b'\n');
|
||||
}
|
||||
b'\r' => uart.write_byte(b'\n'),
|
||||
b'q' => break,
|
||||
_ => continue,
|
||||
}
|
||||
|
Reference in New Issue
Block a user