summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/emitter.rs16
-rw-r--r--src/tokenizer.rs2
2 files changed, 9 insertions, 9 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>,
diff --git a/src/tokenizer.rs b/src/tokenizer.rs
index 469cbd1..d8f1b95 100644
--- a/src/tokenizer.rs
+++ b/src/tokenizer.rs
@@ -32,7 +32,7 @@ impl<T: Copy> Stack2<T> {
}
}
-/// A HTML tokenizer. See crate-level docs for basic usage.
+/// An HTML tokenizer. See crate-level docs for basic usage.
pub struct Tokenizer<R: Reader, O = NoopOffset, E: Emitter<O> = DefaultEmitter<O>> {
eof: bool,
pub(crate) state: InternalState,