We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4df6929 commit f3ded56Copy full SHA for f3ded56
1 file changed
src/normalize.rs
@@ -457,7 +457,10 @@ fn is_ascii_lowercase_hex(s: &str) -> bool {
457
458
// "10 | T: Send," -> " | T: Send,"
459
fn hide_leading_numbers(line: &mut String) {
460
- let n = line.bytes().take_while(u8::is_ascii_digit).count();
+ let n = line
461
+ .bytes()
462
+ .take_while(|b: &u8| *b == b' ' || b.is_ascii_digit())
463
+ .count();
464
for i in 0..n {
465
line.replace_range(i..i + 1, " ");
466
}
0 commit comments