about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-12-06 20:39:08 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-12-07 07:33:12 +1100
commitc6bbb376a24c1397ca13078192418ef746382b10 (patch)
treed97aab5568178f18d2a76baa24a0a3936837cdc3
parente290582abff724811eca6dd021f97955cb13a3b8 (diff)
downloadrust-c6bbb376a24c1397ca13078192418ef746382b10.tar.gz
rust-c6bbb376a24c1397ca13078192418ef746382b10.zip
Fix an out-of-date comment.
-rw-r--r--compiler/rustc_lexer/src/unescape.rs2
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();