Skip to content

Commit a72c26b

Browse files
committed
Fix solution of options1 for stable Rust
1 parent fe3292c commit a72c26b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

solutions/12_options/options1.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
// `hour_of_day` is higher than 23.
55
fn maybe_icecream(hour_of_day: u16) -> Option<u16> {
66
match hour_of_day {
7-
0..22 => Some(5),
8-
22..24 => Some(0),
7+
0..=21 => Some(5),
8+
22..=23 => Some(0),
99
_ => None,
1010
}
1111
}

0 commit comments

Comments
 (0)