@@ -121,7 +121,7 @@ pub trait AtRuleParser<'i> {
121121 /// The location passed in is source location of the start of the prelude.
122122 ///
123123 /// Return the finished representation of the at-rule
124- /// as returned by `RuleListParser ::next` or `DeclarationListParser::next`,
124+ /// as returned by `StyleSheetParser ::next` or `DeclarationListParser::next`,
125125 /// or an `Err(..)` to ignore the entire at-rule as invalid.
126126 ///
127127 /// This is only called when `parse_prelude` returned `WithBlock`, and a block
@@ -146,7 +146,7 @@ pub trait AtRuleParser<'i> {
146146///
147147/// Default implementations that reject all qualified rules are provided, so that
148148/// `impl QualifiedRuleParser<(), ()> for ... {}` can be used for example for using
149- /// `RuleListParser ` to parse a rule list with only at-rules (such as inside
149+ /// `StyleSheetParser ` to parse a rule list with only at-rules (such as inside
150150/// `@font-feature-values`).
151151pub trait QualifiedRuleParser < ' i > {
152152 /// The intermediate representation of a qualified rule prelude.
@@ -179,7 +179,7 @@ pub trait QualifiedRuleParser<'i> {
179179 /// The location passed in is source location of the start of the prelude.
180180 ///
181181 /// Return the finished representation of the qualified rule
182- /// as returned by `RuleListParser ::next`,
182+ /// as returned by `StyleSheetParser ::next`,
183183 /// or an `Err(..)` to ignore the entire at-rule as invalid.
184184 fn parse_block < ' t > (
185185 & mut self ,
@@ -339,7 +339,7 @@ where
339339 /// implementations of their methods.
340340 ///
341341 /// The return type for finished qualified rules and at-rules also needs to be the same,
342- /// since `<RuleListParser as Iterator>::next` can return either. It could be a custom enum.
342+ /// since `<StyleSheetParser as Iterator>::next` can return either. It could be a custom enum.
343343 pub fn new ( input : & ' a mut Parser < ' i , ' t > , parser : & ' a mut P ) -> Self {
344344 Self {
345345 input,
@@ -349,7 +349,7 @@ where
349349 }
350350}
351351
352- /// `RuleListParser ` is an iterator that yields `Ok(_)` for a rule or an `Err(..)` for an invalid one.
352+ /// `StyleSheetParser ` is an iterator that yields `Ok(_)` for a rule or an `Err(..)` for an invalid one.
353353impl < ' i , R , P , E : ' i > Iterator for StyleSheetParser < ' i , ' _ , ' _ , P >
354354where
355355 P : QualifiedRuleParser < ' i , QualifiedRule = R , Error = E >
0 commit comments