]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_lexer/src/unescape.rs
Rollup merge of #98387 - NobodyXu:feature/std_io_Error_try_downgrade_inner, r=yaahc
[rust.git] / compiler / rustc_lexer / src / unescape.rs
index 97f9588ae1ef557a280a1cf1c93234c8d3b0c2ee..3da6bc14622a0b838b853151614a5f2e3e2ddfbd 100644 (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;