mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
Fix line numbering in tidy
This commit is contained in:
parent
0d863ccea9
commit
07ee6ebf56
1 changed files with 1 additions and 1 deletions
|
@ -371,7 +371,7 @@ fn check_trailing_ws(path: &Path, text: &str) {
|
|||
}
|
||||
for (line_number, line) in text.lines().enumerate() {
|
||||
if line.chars().last().map(char::is_whitespace) == Some(true) {
|
||||
panic!("Trailing whitespace in {} at line {}", path.display(), line_number)
|
||||
panic!("Trailing whitespace in {} at line {}", path.display(), line_number + 1)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue