mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-01 16:03:31 +02:00
Fix solution of options1 for stable Rust
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
// `hour_of_day` is higher than 23.
|
||||
fn maybe_icecream(hour_of_day: u16) -> Option<u16> {
|
||||
match hour_of_day {
|
||||
0..22 => Some(5),
|
||||
22..24 => Some(0),
|
||||
0..=21 => Some(5),
|
||||
22..=23 => Some(0),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user