From 9323efc3f862c5b071e808194982cbb6672f9919 Mon Sep 17 00:00:00 2001
From: Martin Fischer
Date: Sat, 12 Aug 2023 06:31:48 +0200
Subject: docs: correct `a HTML` to `an HTML` and fix 2 typos
---
src/emitter.rs | 16 ++++++++--------
src/tokenizer.rs | 2 +-
2 files changed, 9 insertions(+), 9 deletions(-)
(limited to 'src')
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 {
/// 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 StartTag {
}
}
-/// A HTML end/close tag, such as `
` or ``.
+/// An HTML end/close tag, such as `` or ``.
#[derive(Debug, Eq, PartialEq)]
pub struct EndTag {
/// The ending tag's name, such as `"p"` or `"a"`.
@@ -561,22 +561,22 @@ impl Doctype {
/// [`Emitter`] trait.
#[derive(Debug, Eq, PartialEq)]
pub enum Token {
- /// A HTML start tag.
+ /// An HTML start tag.
StartTag(StartTag),
- /// A HTML end tag.
+ /// An HTML end tag.
EndTag(EndTag),
/// A literal string.
String(String),
- /// A HTML comment.
+ /// An HTML comment.
Comment(Comment),
- /// A HTML doctype declaration.
+ /// An HTML doctype declaration.
Doctype(Doctype),
- /// 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,
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 Stack2 {
}
}
-/// A HTML tokenizer. See crate-level docs for basic usage.
+/// An HTML tokenizer. See crate-level docs for basic usage.
pub struct Tokenizer = DefaultEmitter> {
eof: bool,
pub(crate) state: InternalState,
--
cgit v1.2.3