Merge pull request #1624 from shirts/shirts/errors-2-comments

Fix comment in errors2
This commit is contained in:
liv 2023-08-15 11:19:43 +02:00 committed by GitHub
commit da395fed20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -9,9 +9,9 @@
// //
// Right now, this function isn't handling the error case at all (and isn't // 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 // 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 // the `total_cost` function on a string that is not a number, that function
// return a `ParseIntError`, and in that case, we want to immediately return // will return a `ParseIntError`, and in that case, we want to immediately
// that error from our function and not try to multiply and add. // 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 // There are at least two ways to implement this that are both correct-- but one
// is a lot shorter! // is a lot shorter!