Fix an out-of-date comment.

This commit is contained in:
Nicholas Nethercote 2023-12-06 20:39:08 +11:00
parent e290582abf
commit c6bbb376a2

View File

@ -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();