diff options
| author | liv <mokou@fastmail.com> | 2023-09-04 14:34:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-04 14:34:13 +0200 |
| commit | 0aa941873662918aef679bd77b8b7bd6b1a23ec3 (patch) | |
| tree | 01115c2e72dd0ca51c4bfb2ac1f043d6d9a0a1ca /exercises/error_handling/errors2.rs | |
| parent | 37cdea9183796909057d8b42ab2866fde1525a40 (diff) | |
| parent | abc3013096f20a41009086c0f5ccb1b2b13abf12 (diff) | |
Merge branch 'main' into chore/update-hints
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! |
