Skip to content

Commit f423ff7

Browse files
committed
Fix pretty test
1 parent 4e31282 commit f423ff7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/parse/lexer/comments.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ fn all_whitespace(s: &str, col: CharPos) -> Option<usize> {
211211
if !ch.is_whitespace() {
212212
return None;
213213
}
214-
idx = i;
214+
idx = i + ch.len_utf8();
215215
}
216216
Some(idx)
217217
}

0 commit comments

Comments
 (0)