Skip to content

Commit d08134f

Browse files
authored
fix comment for TokenCursor::desugar
the hashes of the text were forgotten.
1 parent 29d76cc commit d08134f

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_parse/src/parser

1 file changed

+1
-1
lines changed

compiler/rustc_parse/src/parser/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ impl TokenCursor {
317317
// required to wrap the text. E.g.
318318
// - `abc d` is wrapped as `r"abc d"` (num_of_hashes = 0)
319319
// - `abc "d"` is wrapped as `r#"abc "d""#` (num_of_hashes = 1)
320-
// - `abc "##d##"` is wrapped as `r###"abc "d""###` (num_of_hashes = 3)
320+
// - `abc "##d##"` is wrapped as `r###"abc ##"d"##"###` (num_of_hashes = 3)
321321
let mut num_of_hashes = 0;
322322
let mut count = 0;
323323
for ch in data.as_str().chars() {

0 commit comments

Comments
 (0)