You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-08-11 09:21:40 +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() {
|
if let Some(byte) = uart.read_byte() {
|
||||||
uart.write_byte(byte);
|
uart.write_byte(byte);
|
||||||
match byte {
|
match byte {
|
||||||
b'\r' => {
|
b'\r' => uart.write_byte(b'\n'),
|
||||||
uart.write_byte(b'\n');
|
|
||||||
}
|
|
||||||
b'q' => break,
|
b'q' => break,
|
||||||
_ => continue,
|
_ => continue,
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user