diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-06 20:39:08 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-07 07:33:12 +1100 |
| commit | c6bbb376a24c1397ca13078192418ef746382b10 (patch) | |
| tree | d97aab5568178f18d2a76baa24a0a3936837cdc3 | |
| parent | e290582abff724811eca6dd021f97955cb13a3b8 (diff) | |
| download | rust-c6bbb376a24c1397ca13078192418ef746382b10.tar.gz rust-c6bbb376a24c1397ca13078192418ef746382b10.zip | |
Fix an out-of-date comment.
| -rw-r--r-- | compiler/rustc_lexer/src/unescape.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lexer/src/unescape.rs b/compiler/rustc_lexer/src/unescape.rs index ddbe826f570..dab656b35f9 100644 --- a/compiler/rustc_lexer/src/unescape.rs +++ b/compiler/rustc_lexer/src/unescape.rs @@ -395,7 +395,7 @@ where let mut chars = src.chars(); // The `start` and `end` computation here matches the one in - // `unescape_str_or_byte_str` for consistency, even though this function + // `unescape_str_common` for consistency, even though this function // doesn't have to worry about skipping any chars. while let Some(c) = chars.next() { let start = src.len() - chars.as_str().len() - c.len_utf8(); |
