Commit 2e0a88f
32: Report 1-based indices in Error's Display impl r=lnicola a=CAD97
This matches every (mainstream) text editor's use of the line:column format.
I actually lost some time trying to figure out why it was complaining about an empty line before I realized why 😅
I kept `Location` 0-based and translated just at the point of display, as that was a much less invasive change.
Co-authored-by: Christopher Durham <cad97@cad97.com>
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
0 commit comments