From a0a4ea69f3a4141b94c77a755924dd6dccd71ba2 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Tue, 5 Sep 2023 09:38:26 +0200 Subject: docs: stop referencing Emitter from token types --- src/emitter.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/emitter.rs b/src/emitter.rs index ed8e978..f27c778 100644 --- a/src/emitter.rs +++ b/src/emitter.rs @@ -577,8 +577,7 @@ pub struct StartTag { /// A mapping for any HTML attributes this start tag may have. /// - /// Duplicate attributes are ignored after the first one as per WHATWG spec. Implement your own - /// [`Emitter`] to tweak this behavior. + /// Duplicate attributes are ignored after the first one as per WHATWG spec. pub attributes: crate::attr::AttributeMap, /// The source code span of the tag. @@ -674,8 +673,7 @@ impl Doctype { } } -/// The token type used by default. You can define your own token type by implementing the -/// [`Emitter`] trait. +/// A type for the tokens emitted by a WHATWG-compliant HTML tokenizer. #[derive(Debug, Eq, PartialEq)] pub enum Token { /// An HTML start tag. -- cgit v1.2.3