diff options
-rw-r--r-- | src/emitter.rs | 10 | ||||
-rw-r--r-- | src/reader.rs | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/emitter.rs b/src/emitter.rs index b660c1f..ac0f9d2 100644 --- a/src/emitter.rs +++ b/src/emitter.rs @@ -31,7 +31,7 @@ use crate::Error; /// The state machine needs to have a functional implementation of /// `current_is_appropriate_end_tag_token` to do correct transitions, however. pub trait Emitter<R> { - /// The token type emitted by this emitter. This controls what type of values the [`crate::Tokenizer`] + /// The token type emitted by this emitter. This controls what type of values the [`Tokenizer`](crate::Tokenizer) /// yields when used as an iterator. type Token; @@ -86,7 +86,7 @@ pub trait Emitter<R> { /// If the current token is not a start or end tag, this method may panic. /// /// If the current token is an end tag, the emitter should emit the - /// [`crate::Error::EndTagWithTrailingSolidus`] error. + /// [`Error::EndTagWithTrailingSolidus`] error. fn set_self_closing(&mut self, reader: &R); /// Assuming the _current token_ is a doctype, set its "force quirks" flag to true. @@ -121,7 +121,7 @@ pub trait Emitter<R> { /// /// The old attribute, if any, should be put on the _current token_. If an attribute with that /// name already exists, WHATWG says the new one should be ignored and a - /// [`crate::Error::DuplicateAttribute`] error should be emitted. + /// [`Error::DuplicateAttribute`] error should be emitted. /// /// If the current token is no tag at all, this method may panic. fn init_attribute_name(&mut self, reader: &R); @@ -174,7 +174,7 @@ pub trait Emitter<R> { fn current_is_appropriate_end_tag_token(&mut self) -> bool; } -/// The default implementation of [`crate::Emitter`], used to produce tokens. +/// The default implementation of [`Emitter`], used to produce tokens. pub struct DefaultEmitter<R, S> { current_characters: String, current_token: Option<Token<S>>, @@ -534,7 +534,7 @@ pub struct Doctype { } /// The token type used by default. You can define your own token type by implementing the -/// [`crate::Emitter`] trait. +/// [`Emitter`] trait. #[derive(Debug, Eq, PartialEq)] pub enum Token<S> { /// A HTML start tag. diff --git a/src/reader.rs b/src/reader.rs index 19929d4..fa83139 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -28,7 +28,7 @@ pub trait Reader { fn try_read_string(&mut self, s: &str, case_sensitive: bool) -> Result<bool, Self::Error>; } -/// An object that can be converted into a [`crate::Reader`]. +/// An object that can be converted into a [`Reader`]. /// /// For example, any utf8-string can be converted into a `StringReader`. // TODO: , such that [give concrete examples of not-yet-implemented parser API] work. |