mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
Fix line numbering in tidy
This commit is contained in:
parent
0d863ccea9
commit
07ee6ebf56
@ -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…
Reference in New Issue
Block a user