Skip to content

Commit

Permalink
Auto merge of #106268 - kraktus:patch-2, r=Nilstrieb
Browse files Browse the repository at this point in the history
fix comment for `TokenCursor::desugar`

the hashes of the text were forgotten.
  • Loading branch information
bors committed Dec 30, 2022
2 parents 808be91 + d08134f commit e5e5fcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_parse/src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ impl TokenCursor {
// required to wrap the text. E.g.
// - `abc d` is wrapped as `r"abc d"` (num_of_hashes = 0)
// - `abc "d"` is wrapped as `r#"abc "d""#` (num_of_hashes = 1)
// - `abc "##d##"` is wrapped as `r###"abc "d""###` (num_of_hashes = 3)
// - `abc "##d##"` is wrapped as `r###"abc ##"d"##"###` (num_of_hashes = 3)
let mut num_of_hashes = 0;
let mut count = 0;
for ch in data.as_str().chars() {
Expand Down

0 comments on commit e5e5fcb

Please # to comment.