Skip to content

Commit ce56ea5

Browse files
authored
Use both break and continue for consistency (#2412)
To me, this little change makes it a little clearer that we either print something, we break, or we continue in the loop.
1 parent ec6cb02 commit ce56ea5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bare-metal/aps/examples/src/main_improved.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ extern "C" fn main(x0: u64, x1: u64, x2: u64, x3: u64) {
4545
uart.write_byte(b'\n');
4646
}
4747
b'q' => break,
48-
_ => {}
48+
_ => continue,
4949
}
5050
}
5151
}

0 commit comments

Comments
 (0)