Skip to content

Commit 3c1d352

Browse files
committed
Add a doc comment for scan_raw_string
1 parent 8cd51ff commit 3c1d352

File tree

1 file changed

+2
-0
lines changed
  • src/libsyntax/parse/lexer

1 file changed

+2
-0
lines changed

src/libsyntax/parse/lexer/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1242,6 +1242,8 @@ impl<'a> StringReader<'a> {
12421242
id
12431243
}
12441244

1245+
/// Scans a raw (byte) string, returning byte position range for `"<literal>"`
1246+
/// (including quotes) along with `#` character count in `(b)r##..."<literal>"##...`;
12451247
fn scan_raw_string(&mut self) -> (BytePos, BytePos, u16) {
12461248
let start_bpos = self.pos;
12471249
self.bump();

0 commit comments

Comments
 (0)