From c6bbb376a24c1397ca13078192418ef746382b10 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Wed, 6 Dec 2023 20:39:08 +1100 Subject: [PATCH] Fix an out-of-date comment. --- compiler/rustc_lexer/src/unescape.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();