diff options
| author | liv <mokou@fastmail.com> | 2023-08-15 11:19:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-15 11:19:43 +0200 |
| commit | da395fed20510ba3d76f25165e5aa2b31f5c50c8 (patch) | |
| tree | 4248df5f32c3869653d87bcc12a28b2bc2ea1950 /exercises/error_handling/errors2.rs | |
| parent | 64035f766fe7e363ab73dba3483f688a94595a90 (diff) | |
| parent | ad1c29c512cbd39c05ebd07b9013f08fe8721017 (diff) | |
Merge pull request #1624 from shirts/shirts/errors-2-comments
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! |
