We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
<![CDATA[
<!--
<!DOCTYPE
1 parent 490db3c commit 5d49266Copy full SHA for 5d49266
src/reader/state.rs
@@ -129,10 +129,10 @@ impl ReaderState {
129
}
130
131
_ => {
132
- // <!....
133
- // ^^^^^ - `buf` does not contains `<`, but we want to report error at `<`,
134
- // so we move offset to it (+1 for `<`)
135
- self.offset -= 1;
+ // <!....>
+ // ^^^^^ - `buf` does not contain `<` and `>`, but `self.offset` is after `>`.
+ // ^------- We report error at that position, so we need to subtract 2 and buf len
+ self.offset -= len + 2;
136
Err(bang_type.to_err())
137
138
0 commit comments