mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-29 00:34:17 -05:00
docs(options1): fix and clarify 24 hour time instruction
This commit is contained in:
parent
818eaa7307
commit
c157c53983
1 changed files with 2 additions and 2 deletions
|
@ -8,8 +8,8 @@
|
||||||
// all, so there'll be no more left :(
|
// all, so there'll be no more left :(
|
||||||
// TODO: Return an Option!
|
// TODO: Return an Option!
|
||||||
fn maybe_icecream(time_of_day: u16) -> Option<u16> {
|
fn maybe_icecream(time_of_day: u16) -> Option<u16> {
|
||||||
// We use the 24-hour system here, so 10PM is a value of 22
|
// 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 > 24.
|
// The Option output should gracefully handle cases where time_of_day > 23.
|
||||||
???
|
???
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue