diff options
| author | Shotaro Yamada <sinkuu@sinkuu.xyz> | 2018-12-05 12:15:28 +0900 |
|---|---|---|
| committer | Shotaro Yamada <sinkuu@sinkuu.xyz> | 2018-12-05 12:15:28 +0900 |
| commit | f423ff7be86da0333e4c6459fd4eaf0181183e73 (patch) | |
| tree | 9c6ee0b4560934a34a40bbf2956a376d3f8cf0da /src/libsyntax/parse/lexer/comments.rs | |
| parent | 4e3128223b215bb84fc25ac4394f8ed44d1c27bb (diff) | |
| download | rust-f423ff7be86da0333e4c6459fd4eaf0181183e73.tar.gz rust-f423ff7be86da0333e4c6459fd4eaf0181183e73.zip | |
Fix pretty test
Diffstat (limited to 'src/libsyntax/parse/lexer/comments.rs')
| -rw-r--r-- | src/libsyntax/parse/lexer/comments.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/lexer/comments.rs b/src/libsyntax/parse/lexer/comments.rs index 92990ae2ef0..d3039326c89 100644 --- a/src/libsyntax/parse/lexer/comments.rs +++ b/src/libsyntax/parse/lexer/comments.rs @@ -211,7 +211,7 @@ fn all_whitespace(s: &str, col: CharPos) -> Option<usize> { if !ch.is_whitespace() { return None; } - idx = i; + idx = i + ch.len_utf8(); } Some(idx) } |
