diff options
Diffstat (limited to 'exercises/error_handling')
| -rw-r--r-- | exercises/error_handling/errors1.rs | 2 | ||||
| -rw-r--r-- | exercises/error_handling/errors2.rs | 2 | ||||
| -rw-r--r-- | exercises/error_handling/errors3.rs | 2 | ||||
| -rw-r--r-- | exercises/error_handling/errorsn.rs | 2 | ||||
| -rw-r--r-- | exercises/error_handling/option1.rs | 2 | ||||
| -rw-r--r-- | exercises/error_handling/result1.rs | 2 |
6 files changed, 12 insertions, 0 deletions
diff --git a/exercises/error_handling/errors1.rs b/exercises/error_handling/errors1.rs index f585e29..9c24d85 100644 --- a/exercises/error_handling/errors1.rs +++ b/exercises/error_handling/errors1.rs @@ -6,6 +6,8 @@ // this function to have. // Execute `rustlings hint errors1` for hints! +// I AM NOT DONE + pub fn generate_nametag_text(name: String) -> Option<String> { if name.len() > 0 { Some(format!("Hi! My name is {}", name)) diff --git a/exercises/error_handling/errors2.rs b/exercises/error_handling/errors2.rs index 5ac6339..aad3a93 100644 --- a/exercises/error_handling/errors2.rs +++ b/exercises/error_handling/errors2.rs @@ -16,6 +16,8 @@ // There are at least two ways to implement this that are both correct-- but // one is a lot shorter! Execute `rustlings hint errors2` for hints to both ways. +// I AM NOT DONE + use std::num::ParseIntError; pub fn total_cost(item_quantity: &str) -> Result<i32, ParseIntError> { diff --git a/exercises/error_handling/errors3.rs b/exercises/error_handling/errors3.rs index d9ec133..460ac5c 100644 --- a/exercises/error_handling/errors3.rs +++ b/exercises/error_handling/errors3.rs @@ -4,6 +4,8 @@ // Why not? What should we do to fix it? // Execute `rustlings hint errors3` for hints! +// I AM NOT DONE + use std::num::ParseIntError; fn main() { diff --git a/exercises/error_handling/errorsn.rs b/exercises/error_handling/errorsn.rs index 2f3566b..fc25308 100644 --- a/exercises/error_handling/errorsn.rs +++ b/exercises/error_handling/errorsn.rs @@ -15,6 +15,8 @@ // // Execute `rustlings hint errors4` for hints :) +// I AM NOT DONE + use std::error; use std::fmt; use std::io; diff --git a/exercises/error_handling/option1.rs b/exercises/error_handling/option1.rs index e334e93..5d81b15 100644 --- a/exercises/error_handling/option1.rs +++ b/exercises/error_handling/option1.rs @@ -4,6 +4,8 @@ // on `None`. Handle this in a more graceful way than calling `unwrap`! // Execute `rustlings hint option1` for hints :) +// I AM NOT DONE + pub fn pop_too_much() -> bool { let mut list = vec![3]; diff --git a/exercises/error_handling/result1.rs b/exercises/error_handling/result1.rs index c3f2d6e..352a6c2 100644 --- a/exercises/error_handling/result1.rs +++ b/exercises/error_handling/result1.rs @@ -1,6 +1,8 @@ // result1.rs // Make this test pass! Execute `rustlings hint option2` for hints :) +// I AM NOT DONE + #[derive(PartialEq, Debug)] struct PositiveNonzeroInteger(u64); |
