Skip to content

Commit da395fe

Browse files
authored
Merge pull request #1624 from shirts/shirts/errors-2-comments
Fix comment in errors2
2 parents 64035f7 + ad1c29c commit da395fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

exercises/error_handling/errors2.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
//
1010
// Right now, this function isn't handling the error case at all (and isn't
1111
// handling the success case properly either). What we want to do is: if we call
12-
// the `parse` function on a string that is not a number, that function will
13-
// return a `ParseIntError`, and in that case, we want to immediately return
14-
// that error from our function and not try to multiply and add.
12+
// the `total_cost` function on a string that is not a number, that function
13+
// will return a `ParseIntError`, and in that case, we want to immediately
14+
// return that error from our function and not try to multiply and add.
1515
//
1616
// There are at least two ways to implement this that are both correct-- but one
1717
// is a lot shorter!

0 commit comments

Comments
 (0)