Commit cebaf2b
committed
Fix item 14, example code snippet 6.
This doesn't actually appear in the book, but it can be confusing to readers of the example code. The purpose of example 6 is to show that callers may ignore the 'success' return value and only look at the 'result' return value to determine if the function worked correctly. My goal was to show with example 6 that you can't tell the difference between a numerator of 0 or dividing by 0, which is the problem.1 parent 1bcbc8b commit cebaf2b
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
74 | 79 | | |
75 | 80 | | |
76 | 81 | | |
| |||
0 commit comments