aboutsummaryrefslogtreecommitdiff
path: root/src/tokenizer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tokenizer.rs')
-rw-r--r--src/tokenizer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tokenizer.rs b/src/tokenizer.rs
index 6cf930f..871074e 100644
--- a/src/tokenizer.rs
+++ b/src/tokenizer.rs
@@ -185,7 +185,7 @@ impl<R: Reader + Position<O>, O: Offset, E: Emitter<O>> Tokenizer<R, O, E> {
| Error::EofInDoctype
| Error::EofInScriptHtmlCommentLikeText
| Error::EofInTag => self.reader.position()..self.reader.position(),
- _ => self.reader.position() - 1..self.reader.position() - 1,
+ _ => self.reader.position() - 1..self.reader.position(),
};
self.emitter.emit_error(error, span);
}