diff options
| author | bors <bors@rust-lang.org> | 2022-12-30 06:59:13 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-12-30 06:59:13 +0000 |
| commit | e5e5fcb0b758fcf7f149cc9206155dcfa18ec909 (patch) | |
| tree | abccd30ef77c36921e254658e80f2b4e27f41e89 /compiler | |
| parent | 808be91da07c91e4d6006cca0ad78385785a741e (diff) | |
| parent | d08134f1d20f2a6ee342f6b15e252c96ce79df5a (diff) | |
| download | rust-e5e5fcb0b758fcf7f149cc9206155dcfa18ec909.tar.gz rust-e5e5fcb0b758fcf7f149cc9206155dcfa18ec909.zip | |
Auto merge of #106268 - kraktus:patch-2, r=Nilstrieb
fix comment for `TokenCursor::desugar` the hashes of the text were forgotten.
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_parse/src/parser/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/mod.rs b/compiler/rustc_parse/src/parser/mod.rs index 919e71bd115..49d31981539 100644 --- a/compiler/rustc_parse/src/parser/mod.rs +++ b/compiler/rustc_parse/src/parser/mod.rs @@ -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() { |
