Commit f0719fa
committed
π Fix off-by-one in API "View code" source links
`@deno/doc` v2 changed `Location.line` from 1-indexed to 0-indexed (deno_doc
#150/#777). GitHub's `#L<n>` anchor is 1-indexed, so the source links generated
in package.ts / package/node.ts pointed one line above the symbol's
declaration. Add `+ 1`.1 parent d74b4a5 commit f0719fa
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
| 271 | + | |
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| |||
0 commit comments