aboutsummaryrefslogtreecommitdiff
path: root/src/emitter.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-08-12 11:38:12 +0200
committerMartin Fischer <martin@push-f.com>2023-08-19 06:41:55 +0200
commit7a42549d3121bb9fe29e7e58260a287e62714bc3 (patch)
tree94aa94eb5d8046ba6514085e3753ace9432ddf9f /src/emitter.rs
parentceaee3c83f32e573506b2da9f01fbcf56a5198e5 (diff)
docs: remove `crate::` from link labels
Diffstat (limited to 'src/emitter.rs')
-rw-r--r--src/emitter.rs10
1 files changed, 5 insertions, 5 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.