Rollup merge of #98623 - pro465:patch-1, r=Dylan-DPC

fix typo in comment
This commit is contained in:
Matthias Krüger 2022-06-28 18:34:36 +02:00 committed by GitHub
commit 164c98e447
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ fn scan_escape(chars: &mut Chars<'_>, mode: Mode) -> Result<char, EscapeError> {
c.to_digit(16).ok_or(EscapeError::InvalidCharInUnicodeEscape)?;
n_digits += 1;
if n_digits > 6 {
// Stop updating value since we're sure that it's is incorrect already.
// Stop updating value since we're sure that it's incorrect already.
continue;
}
let digit = digit as u32;