diff options
Diffstat (limited to '')
-rw-r--r-- | src/construct/html_text.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/construct/html_text.rs b/src/construct/html_text.rs index 51beda5..8a44c29 100644 --- a/src/construct/html_text.rs +++ b/src/construct/html_text.rs @@ -169,7 +169,7 @@ fn comment_open_inside(tokenizer: &mut Tokenizer) -> State { /// [html_flow]: crate::construct::html_flow fn comment_start(tokenizer: &mut Tokenizer) -> State { match tokenizer.current { - None | Some(b'>') => State::Nok, + Some(b'>') => State::Nok, Some(b'-') => { tokenizer.consume(); State::Fn(Box::new(comment_start_dash)) @@ -193,7 +193,7 @@ fn comment_start(tokenizer: &mut Tokenizer) -> State { /// [html_flow]: crate::construct::html_flow fn comment_start_dash(tokenizer: &mut Tokenizer) -> State { match tokenizer.current { - None | Some(b'>') => State::Nok, + Some(b'>') => State::Nok, _ => comment(tokenizer), } } |