@@ -34,7 +34,7 @@ pub trait DeclarationParser<'i> {
3434 ///
3535 /// Return the finished representation for the declaration
3636 /// as returned by `DeclarationListParser::next`,
37- /// or `Err(() )` to ignore the entire declaration as invalid.
37+ /// or an `Err(.. )` to ignore the entire declaration as invalid.
3838 ///
3939 /// Declaration name matching should be case-insensitive in the ASCII range.
4040 /// This can be done with `std::ascii::Ascii::eq_ignore_ascii_case`,
@@ -78,7 +78,7 @@ pub trait AtRuleParser<'i> {
7878 /// Parse the prelude of an at-rule with the given `name`.
7979 ///
8080 /// Return the representation of the prelude and the type of at-rule,
81- /// or `Err(() )` to ignore the entire at-rule as invalid.
81+ /// or an `Err(.. )` to ignore the entire at-rule as invalid.
8282 ///
8383 /// The prelude is the part after the at-keyword
8484 /// and before the `;` semicolon or `{ /* ... */ }` block.
@@ -122,7 +122,7 @@ pub trait AtRuleParser<'i> {
122122 ///
123123 /// Return the finished representation of the at-rule
124124 /// as returned by `RuleListParser::next` or `DeclarationListParser::next`,
125- /// or `Err(() )` to ignore the entire at-rule as invalid.
125+ /// 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
128128 /// was indeed found following the prelude.
@@ -161,7 +161,7 @@ pub trait QualifiedRuleParser<'i> {
161161 /// Parse the prelude of a qualified rule. For style rules, this is as Selector list.
162162 ///
163163 /// Return the representation of the prelude,
164- /// or `Err(() )` to ignore the entire at-rule as invalid.
164+ /// or an `Err(.. )` to ignore the entire at-rule as invalid.
165165 ///
166166 /// The prelude is the part before the `{ /* ... */ }` block.
167167 ///
@@ -180,7 +180,7 @@ pub trait QualifiedRuleParser<'i> {
180180 ///
181181 /// Return the finished representation of the qualified rule
182182 /// as returned by `RuleListParser::next`,
183- /// or `Err(() )` to ignore the entire at-rule as invalid.
183+ /// or an `Err(.. )` to ignore the entire at-rule as invalid.
184184 fn parse_block < ' t > (
185185 & mut self ,
186186 prelude : Self :: Prelude ,
@@ -353,7 +353,7 @@ where
353353 }
354354}
355355
356- /// `RuleListParser` is an iterator that yields `Ok(_)` for a rule or `Err(() )` for an invalid one.
356+ /// `RuleListParser` is an iterator that yields `Ok(_)` for a rule or an `Err(.. )` for an invalid one.
357357impl < ' i , ' t , ' a , R , P , E : ' i > Iterator for StyleSheetParser < ' i , ' t , ' a , P >
358358where
359359 P : QualifiedRuleParser < ' i , QualifiedRule = R , Error = E >
0 commit comments