chore: added more descriptive TODOs

This commit is contained in:
TK Buristrakul
2022-11-24 19:39:54 +00:00
parent be0b7e084e
commit a315f2fefb
4 changed files with 10 additions and 9 deletions

View File

@@ -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!
???
}