Skip to content

Commit 86c3c42

Browse files
bors[bot]lnicola
andauthored
Merge #9326
9326: Minor: Fix line numbering in tidy r=lnicola a=lnicola bors r+ Co-authored-by: Laurențiu Nicola <[email protected]>
2 parents 0d863cc + 07ee6eb commit 86c3c42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xtask/src/tidy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ fn check_trailing_ws(path: &Path, text: &str) {
371371
}
372372
for (line_number, line) in text.lines().enumerate() {
373373
if line.chars().last().map(char::is_whitespace) == Some(true) {
374-
panic!("Trailing whitespace in {} at line {}", path.display(), line_number)
374+
panic!("Trailing whitespace in {} at line {}", path.display(), line_number + 1)
375375
}
376376
}
377377
}

0 commit comments

Comments
 (0)