summaryrefslogtreecommitdiff
path: root/exercises/options
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/options')
-rw-r--r--exercises/options/options1.rs2
-rw-r--r--exercises/options/options2.rs2
2 files changed, 1 insertions, 3 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!
???
}
diff --git a/exercises/options/options2.rs b/exercises/options/options2.rs
index b112047..4e36443 100644
--- a/exercises/options/options2.rs
+++ b/exercises/options/options2.rs
@@ -5,8 +5,6 @@
#[cfg(test)]
mod tests {
- use super::*;
-
#[test]
fn simple_option() {
let target = "rustlings";