diff options
Diffstat (limited to 'exercises/error_handling/errors3.rs')
| -rw-r--r-- | exercises/error_handling/errors3.rs | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/exercises/error_handling/errors3.rs b/exercises/error_handling/errors3.rs index 35cd5c3..460ac5c 100644 --- a/exercises/error_handling/errors3.rs +++ b/exercises/error_handling/errors3.rs @@ -1,7 +1,8 @@ // errors3.rs // This is a program that is trying to use a completed version of the // `total_cost` function from the previous exercise. It's not working though! -// Why not? What should we do to fix it? Scroll for hints! +// Why not? What should we do to fix it? +// Execute `rustlings hint errors3` for hints! // I AM NOT DONE @@ -28,22 +29,3 @@ pub fn total_cost(item_quantity: &str) -> Result<i32, ParseIntError> { Ok(qty * cost_per_item + processing_fee) } - - - - - - - - - - - - - - - - - - -// If other functions can return a `Result`, why shouldn't `main`? |
