@@ -34,7 +34,7 @@ pub trait DeclarationParser<'i> {
34
34
///
35
35
/// Return the finished representation for the declaration
36
36
/// 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.
38
38
///
39
39
/// Declaration name matching should be case-insensitive in the ASCII range.
40
40
/// This can be done with `std::ascii::Ascii::eq_ignore_ascii_case`,
@@ -78,7 +78,7 @@ pub trait AtRuleParser<'i> {
78
78
/// Parse the prelude of an at-rule with the given `name`.
79
79
///
80
80
/// 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.
82
82
///
83
83
/// The prelude is the part after the at-keyword
84
84
/// and before the `;` semicolon or `{ /* ... */ }` block.
@@ -122,7 +122,7 @@ pub trait AtRuleParser<'i> {
122
122
///
123
123
/// Return the finished representation of the at-rule
124
124
/// 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.
126
126
///
127
127
/// This is only called when `parse_prelude` returned `WithBlock`, and a block
128
128
/// was indeed found following the prelude.
@@ -161,7 +161,7 @@ pub trait QualifiedRuleParser<'i> {
161
161
/// Parse the prelude of a qualified rule. For style rules, this is as Selector list.
162
162
///
163
163
/// 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.
165
165
///
166
166
/// The prelude is the part before the `{ /* ... */ }` block.
167
167
///
@@ -180,7 +180,7 @@ pub trait QualifiedRuleParser<'i> {
180
180
///
181
181
/// Return the finished representation of the qualified rule
182
182
/// 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.
184
184
fn parse_block < ' t > (
185
185
& mut self ,
186
186
prelude : Self :: Prelude ,
@@ -353,7 +353,7 @@ where
353
353
}
354
354
}
355
355
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.
357
357
impl < ' i , ' t , ' a , R , P , E : ' i > Iterator for StyleSheetParser < ' i , ' t , ' a , P >
358
358
where
359
359
P : QualifiedRuleParser < ' i , QualifiedRule = R , Error = E >
0 commit comments