Skip to content

Commit

Permalink
Rollup merge of #98623 - pro465:patch-1, r=Dylan-DPC
Browse files Browse the repository at this point in the history
fix typo in comment
  • Loading branch information
matthiaskrgr authored Jun 28, 2022
2 parents db872ee + 8c22b6b commit 164c98e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_lexer/src/unescape.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 164c98e

Please sign in to comment.