Skip to content

Commit 93a0f0a

Browse files
authored
Rollup merge of rust-lang#80155 - matsujika:matsujika-patch-1, r=jonas-schievink
Fix typo
2 parents 66042fc + 56530a2 commit 93a0f0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_lexer/src/unescape.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ fn scan_escape(first_char: char, chars: &mut Chars<'_>, mode: Mode) -> Result<ch
201201
return Err(EscapeError::NoBraceInUnicodeEscape);
202202
}
203203

204-
// First characrer must be a hexadecimal digit.
204+
// First character must be a hexadecimal digit.
205205
let mut n_digits = 1;
206206
let mut value: u32 = match chars.next().ok_or(EscapeError::UnclosedUnicodeEscape)? {
207207
'_' => return Err(EscapeError::LeadingUnderscoreUnicodeEscape),

0 commit comments

Comments
 (0)