Skip to content

Commit

Permalink
Merge pull request rust-lang#1624 from shirts/shirts/errors-2-comments
Browse files Browse the repository at this point in the history
Fix comment in errors2
  • Loading branch information
shadows-withal authored Aug 15, 2023
2 parents 64035f7 + ad1c29c commit da395fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exercises/error_handling/errors2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down

0 comments on commit da395fe

Please sign in to comment.