]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_lexer/src/unescape.rs
Fix typo
[rust.git] / compiler / rustc_lexer / src / unescape.rs
index 697d25fdb585bebd78cbc6a973356bcb358b1e2b..b4dd0fc2449ecb7ffbe653bcb4b6a4f6403df5c2 100644 (file)
@@ -201,7 +201,7 @@ fn scan_escape(first_char: char, chars: &mut Chars<'_>, mode: Mode) -> Result<ch
                 return Err(EscapeError::NoBraceInUnicodeEscape);
             }
 
-            // First characrer must be a hexadecimal digit.
+            // First character must be a hexadecimal digit.
             let mut n_digits = 1;
             let mut value: u32 = match chars.next().ok_or(EscapeError::UnclosedUnicodeEscape)? {
                 '_' => return Err(EscapeError::LeadingUnderscoreUnicodeEscape),