about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorkraktus <56031107+kraktus@users.noreply.github.com>2022-12-29 19:45:31 +0100
committerGitHub <noreply@github.com>2022-12-29 19:45:31 +0100
commitd08134f1d20f2a6ee342f6b15e252c96ce79df5a (patch)
tree982a557f6ba264bc2f7c91aa3ec547b274d21d65 /compiler/rustc_parse/src
parent29d76cc6f5064e393440019198328b4424302633 (diff)
downloadrust-d08134f1d20f2a6ee342f6b15e252c96ce79df5a.tar.gz
rust-d08134f1d20f2a6ee342f6b15e252c96ce79df5a.zip
fix comment for `TokenCursor::desugar`
the hashes of the text were forgotten.
Diffstat (limited to 'compiler/rustc_parse/src')
-rw-r--r--compiler/rustc_parse/src/parser/mod.rs2
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() {