]> git.lizzy.rs Git - rust.git/commitdiff
fix typo in comment
authorProloy Mishra <67726964+pro465@users.noreply.github.com>
Tue, 28 Jun 2022 14:29:09 +0000 (19:59 +0530)
committerGitHub <noreply@github.com>
Tue, 28 Jun 2022 14:29:09 +0000 (19:59 +0530)
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;