From f423ff7be86da0333e4c6459fd4eaf0181183e73 Mon Sep 17 00:00:00 2001 From: Shotaro Yamada Date: Wed, 5 Dec 2018 12:15:28 +0900 Subject: [PATCH] Fix pretty test --- src/libsyntax/parse/lexer/comments.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsyntax/parse/lexer/comments.rs b/src/libsyntax/parse/lexer/comments.rs index 92990ae2ef071..d3039326c8941 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 { if !ch.is_whitespace() { return None; } - idx = i; + idx = i + ch.len_utf8(); } Some(idx) }