diff options
Diffstat (limited to 'src/tokenizer')
-rw-r--r-- | src/tokenizer/machine.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tokenizer/machine.rs b/src/tokenizer/machine.rs index 9aaac73..28b101d 100644 --- a/src/tokenizer/machine.rs +++ b/src/tokenizer/machine.rs @@ -1799,9 +1799,9 @@ where } } State::NamedCharacterReference => { - let c = slf.read_char()?; + let first_char = slf.read_char()?; - let char_ref = match c { + let char_ref = match first_char { Some(x) => try_read_character_reference(x, |x| slf.try_read_string(x, true))? .map(|char_ref| (x, char_ref)), @@ -1835,7 +1835,7 @@ where Ok(ControlToken::Continue) } } else { - slf.unread_char(c); + slf.unread_char(first_char); slf.flush_code_points_consumed_as_character_reference(); slf.state = State::AmbiguousAmpersand; Ok(ControlToken::Continue) |