Skip to content

Commit e5e5fcb

Browse files
committed
Auto merge of rust-lang#106268 - kraktus:patch-2, r=Nilstrieb
fix comment for `TokenCursor::desugar` the hashes of the text were forgotten.
2 parents 808be91 + d08134f commit e5e5fcb

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)