]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/parse/lexer/mod.rs
Add a doc comment for scan_raw_string
[rust.git] / 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();