We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 818eaa7 + c157c53 commit 6e42eedCopy full SHA for 6e42eed
exercises/options/options1.rs
@@ -8,8 +8,8 @@
8
// all, so there'll be no more left :(
9
// TODO: Return an Option!
10
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.
+ // We use the 24-hour system here, so 10PM is a value of 22 and 12AM is a value of 0
+ // The Option output should gracefully handle cases where time_of_day > 23.
13
???
14
}
15
0 commit comments