diff options
| author | Kevin C <kchandler@costar.com> | 2023-08-14 12:49:28 -0700 |
|---|---|---|
| committer | Kevin C <kchandler@costar.com> | 2023-08-14 12:49:28 -0700 |
| commit | ad1c29c512cbd39c05ebd07b9013f08fe8721017 (patch) | |
| tree | 4248df5f32c3869653d87bcc12a28b2bc2ea1950 /exercises/error_handling/errors2.rs | |
| parent | 64035f766fe7e363ab73dba3483f688a94595a90 (diff) | |
Fix comment in errors2
Diffstat (limited to 'exercises/error_handling/errors2.rs')
| -rw-r--r-- | exercises/error_handling/errors2.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/exercises/error_handling/errors2.rs b/exercises/error_handling/errors2.rs index d86f326..d4a5477 100644 --- a/exercises/error_handling/errors2.rs +++ b/exercises/error_handling/errors2.rs @@ -9,9 +9,9 @@ // // Right now, this function isn't handling the error case at all (and isn't // handling the success case properly either). What we want to do is: if we call -// the `parse` function on a string that is not a number, that function will -// return a `ParseIntError`, and in that case, we want to immediately return -// that error from our function and not try to multiply and add. +// the `total_cost` function on a string that is not a number, that function +// will return a `ParseIntError`, and in that case, we want to immediately +// return that error from our function and not try to multiply and add. // // There are at least two ways to implement this that are both correct-- but one // is a lot shorter! |
