From 3c1d352dc4a66cae9127cf677ec5e609aee1b7ae Mon Sep 17 00:00:00 2001 From: Igor Matuszewski Date: Sun, 9 Jun 2019 14:20:29 +0200 Subject: [PATCH] Add a doc comment for scan_raw_string --- src/libsyntax/parse/lexer/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libsyntax/parse/lexer/mod.rs b/src/libsyntax/parse/lexer/mod.rs index 71fa4bdb2cf..7f190bd7410 100644 --- a/src/libsyntax/parse/lexer/mod.rs +++ b/src/libsyntax/parse/lexer/mod.rs @@ -1242,6 +1242,8 @@ fn scan_double_quoted_string(&mut self, unterminated_msg: &str) -> ast::Name { id } + /// Scans a raw (byte) string, returning byte position range for `""` + /// (including quotes) along with `#` character count in `(b)r##...""##...`; fn scan_raw_string(&mut self) -> (BytePos, BytePos, u16) { let start_bpos = self.pos; self.bump(); -- 2.44.0