Skip to content

Commit c157c53

Browse files
committed
docs(options1): fix and clarify 24 hour time instruction
1 parent 818eaa7 commit c157c53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exercises/options/options1.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
// all, so there'll be no more left :(
99
// TODO: Return an Option!
1010
fn maybe_icecream(time_of_day: u16) -> Option<u16> {
11-
// We use the 24-hour system here, so 10PM is a value of 22
12-
// The Option output should gracefully handle cases where time_of_day > 24.
11+
// We use the 24-hour system here, so 10PM is a value of 22 and 12AM is a value of 0
12+
// The Option output should gracefully handle cases where time_of_day > 23.
1313
???
1414
}
1515

0 commit comments

Comments
 (0)