fix: Fixed instructions for options3.rs

This commit is contained in:
NizTheDev 2022-11-03 21:13:41 +05:00
parent 8b0507cac8
commit 8b78602700

View File

@ -4,8 +4,8 @@
// I AM NOT DONE // I AM NOT DONE
// This function returns how much icecream there is left in the fridge. // 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 // If it's before 10PM, there's 5 pieces left. Once the clock hits 10PM, someone eats them
// all, so there'll be no more left :( // all, so there'll be no more left from there onwards:(
// 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 and 12AM is a value of 0 // We use the 24-hour system here, so 10PM is a value of 22 and 12AM is a value of 0