about summary refs log tree commit diff
diff options
context:
space:
mode:
authorHirochika Matsumoto <matsujika@gmail.com>2020-12-18 22:13:25 +0900
committerHirochika Matsumoto <matsujika@gmail.com>2020-12-18 22:13:25 +0900
commit56530a2f25b621b4589c4f0c7aa147ec811a040e (patch)
tree0aaa2e19e5be4b5fc379e2c19e759cd9f6ca83fa
parentd8d3ab96aa94423f1bdfbb605098a506ab5edc7e (diff)
downloadrust-56530a2f25b621b4589c4f0c7aa147ec811a040e.tar.gz
rust-56530a2f25b621b4589c4f0c7aa147ec811a040e.zip
Fix typo
-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 697d25fdb58..b4dd0fc2449 100644
--- a/compiler/rustc_lexer/src/unescape.rs
+++ b/compiler/rustc_lexer/src/unescape.rs
@@ -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),