about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-06-28 18:34:36 +0200
committerGitHub <noreply@github.com>2022-06-28 18:34:36 +0200
commit164c98e447aa1b6aadcaaebf4c218fa28ff07830 (patch)
tree54dda53391d79e1823e13e4fda69505e42ffcf8d /compiler
parentdb872ee1b8a6f8a598eb6cdadd1fc9d4cab374f0 (diff)
parent8c22b6bcaccd4a2fa1ac3f4e03c74847f203e166 (diff)
Rollup merge of #98623 - pro465:patch-1, r=Dylan-DPC
fix typo in comment
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_lexer/src/unescape.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lexer/src/unescape.rs b/compiler/rustc_lexer/src/unescape.rs
index 97f9588ae1e..3da6bc14622 100644
--- a/compiler/rustc_lexer/src/unescape.rs
+++ b/compiler/rustc_lexer/src/unescape.rs
@@ -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;