]> git.lizzy.rs Git - rust.git/commitdiff
Add a doc comment for scan_raw_string
authorIgor Matuszewski <Xanewok@gmail.com>
Sun, 9 Jun 2019 12:20:29 +0000 (14:20 +0200)
committerIgor Matuszewski <Xanewok@gmail.com>
Sun, 9 Jun 2019 12:20:29 +0000 (14:20 +0200)
src/libsyntax/parse/lexer/mod.rs

index 71fa4bdb2cf0e09ee748752a9f5f40d47d040e97..7f190bd741047cb686a91fb2dfb6307eb27d7de6 100644 (file)
@@ -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 `"<literal>"`
+    /// (including quotes) along with `#` character count in `(b)r##..."<literal>"##...`;
     fn scan_raw_string(&mut self) -> (BytePos, BytePos, u16) {
         let start_bpos = self.pos;
         self.bump();