diff options
Diffstat (limited to 'src/emitter.rs')
-rw-r--r-- | src/emitter.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/emitter.rs b/src/emitter.rs index d1180a5..ed8d9e9 100644 --- a/src/emitter.rs +++ b/src/emitter.rs @@ -36,7 +36,7 @@ pub trait Emitter<O> { /// last time. fn emit_eof(&mut self); - /// A (probably recoverable) parsing error has occured. + /// A (probably recoverable) parsing error has occurred. fn emit_error(&mut self, error: Error, offset: O); /// After every state change, the tokenizer calls this method to retrieve a new token that can @@ -477,7 +477,7 @@ impl<O: Offset> StartTag<O> { } } -/// A HTML end/close tag, such as `</p>` or `</a>`. +/// An HTML end/close tag, such as `</p>` or `</a>`. #[derive(Debug, Eq, PartialEq)] pub struct EndTag<O> { /// The ending tag's name, such as `"p"` or `"a"`. @@ -561,22 +561,22 @@ impl<O: Offset> Doctype<O> { /// [`Emitter`] trait. #[derive(Debug, Eq, PartialEq)] pub enum Token<O> { - /// A HTML start tag. + /// An HTML start tag. StartTag(StartTag<O>), - /// A HTML end tag. + /// An HTML end tag. EndTag(EndTag<O>), /// A literal string. String(String), - /// A HTML comment. + /// An HTML comment. Comment(Comment<O>), - /// A HTML doctype declaration. + /// An HTML doctype declaration. Doctype(Doctype<O>), - /// A HTML parsing error. + /// An HTML parsing error. /// /// Can be skipped over, the tokenizer is supposed to recover from the error and continues with /// more tokens afterward. Error { - /// What kind of error occured. + /// What kind of error occurred. error: Error, /// The source code span of the error. span: Range<O>, |