diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-12-19 15:16:10 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-19 15:16:10 +0900 |
| commit | b27c78390c4c2cce26b3a48646895e09d0e9420d (patch) | |
| tree | f219b386052d1c23f72e49b4cfa8aed9259528cb | |
| parent | 6b52475c68536547bc5552314bfe054fbf2b759f (diff) | |
| parent | 56530a2f25b621b4589c4f0c7aa147ec811a040e (diff) | |
| download | rust-b27c78390c4c2cce26b3a48646895e09d0e9420d.tar.gz rust-b27c78390c4c2cce26b3a48646895e09d0e9420d.zip | |
Rollup merge of #80155 - matsujika:matsujika-patch-1, r=jonas-schievink
Fix typo
| -rw-r--r-- | compiler/rustc_lexer/src/unescape.rs | 2 |
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), |
