mirror of
https://github.com/notohh/rustlings.git
synced 2024-10-30 08:49:12 -04:00
Fix solution of options1 for stable Rust
This commit is contained in:
parent
fe3292c170
commit
a72c26bdc3
1 changed files with 2 additions and 2 deletions
|
@ -4,8 +4,8 @@
|
||||||
// `hour_of_day` is higher than 23.
|
// `hour_of_day` is higher than 23.
|
||||||
fn maybe_icecream(hour_of_day: u16) -> Option<u16> {
|
fn maybe_icecream(hour_of_day: u16) -> Option<u16> {
|
||||||
match hour_of_day {
|
match hour_of_day {
|
||||||
0..22 => Some(5),
|
0..=21 => Some(5),
|
||||||
22..24 => Some(0),
|
22..=23 => Some(0),
|
||||||
_ => None,
|
_ => None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue