diff options
Diffstat (limited to 'exercises/options/options1.rs')
| -rw-r--r-- | exercises/options/options1.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/options/options1.rs b/exercises/options/options1.rs index 1149af0..1f891b0 100644 --- a/exercises/options/options1.rs +++ b/exercises/options/options1.rs @@ -6,10 +6,10 @@ // This function returns how much icecream there is left in the fridge. // If it's before 10PM, there's 5 pieces left. At 10PM, someone eats them // all, so there'll be no more left :( -// TODO: Return an Option! fn maybe_icecream(time_of_day: u16) -> Option<u16> { // 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. + // TODO: Complete the function body - remember to return an Option! ??? } |
