mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
fix comment for TokenCursor::desugar
the hashes of the text were forgotten.
This commit is contained in:
parent
29d76cc6f5
commit
d08134f1d2
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user