File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 9
9
//
10
10
// Right now, this function isn't handling the error case at all (and isn't
11
11
// 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.
15
15
//
16
16
// There are at least two ways to implement this that are both correct-- but one
17
17
// is a lot shorter!
You can’t perform that action at this time.
0 commit comments