You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This crates docs for LineColumn say that the column is 0-indexed. The docs for proc_macro::LineColumn say that the column is 1-indexed. As far as I can see, this is a documentation issue in proc_macro2 and the column value from the proc_macro::LineColumn is used without offset.
The text was updated successfully, but these errors were encountered:
samuelpilz
changed the title
off-by-one in the docs for LineColumn
off-by-one error in the docs for LineColumn
Apr 21, 2022
Looking at the tests, when using the parse::<TokenStream> method outside a proc-macro environment, the column seems to be 0-indexed. PR #372 shows that they are 1-indexed in a proc-macro environment.
samuelpilz
changed the title
off-by-one error in the docs for LineColumn
Inconsistent "indexed-ness" for columns when using within and outside a proc-macro environment
Mar 25, 2023
This crates docs for
LineColumn
say that the column is 0-indexed. The docs forproc_macro::LineColumn
say that the column is 1-indexed. As far as I can see, this is a documentation issue in proc_macro2 and the column value from theproc_macro::LineColumn
is used without offset.The text was updated successfully, but these errors were encountered: