@@ -678,7 +678,7 @@ impl<'i: 't, 't> Parser<'i, 't> {
678
678
}
679
679
680
680
/// Have the given closure parse something, then check the the input is exhausted.
681
- /// The result is overridden to `Err(() )` if some input remains.
681
+ /// The result is overridden to an `Err(.. )` if some input remains.
682
682
///
683
683
/// This can help tell e.g. `color: green;` from `color: green 4px;`
684
684
#[ inline]
@@ -748,7 +748,7 @@ impl<'i: 't, 't> Parser<'i, 't> {
748
748
match self . parse_until_before ( Delimiter :: Comma , & mut parse_one) {
749
749
Ok ( v) => values. push ( v) ,
750
750
Err ( e) if !ignore_errors => return Err ( e) ,
751
- Err ( _) => { } ,
751
+ Err ( _) => { }
752
752
}
753
753
match self . next ( ) {
754
754
Err ( _) => return Ok ( values) ,
@@ -768,7 +768,7 @@ impl<'i: 't, 't> Parser<'i, 't> {
768
768
/// The given closure is called with a "delimited" parser
769
769
/// that stops at the end of the block or function (at the matching closing token).
770
770
///
771
- /// The result is overridden to `Err(() )` if the closure leaves some input before that point.
771
+ /// The result is overridden to an `Err(.. )` if the closure leaves some input before that point.
772
772
#[ inline]
773
773
pub fn parse_nested_block < F , T , E > ( & mut self , parse : F ) -> Result < T , ParseError < ' i , E > >
774
774
where
@@ -784,7 +784,7 @@ impl<'i: 't, 't> Parser<'i, 't> {
784
784
/// that stops before the first character at this block/function nesting level
785
785
/// that matches the given set of delimiters, or at the end of the input.
786
786
///
787
- /// The result is overridden to `Err(() )` if the closure leaves some input before that point.
787
+ /// The result is overridden to an `Err(.. )` if the closure leaves some input before that point.
788
788
#[ inline]
789
789
pub fn parse_until_before < F , T , E > (
790
790
& mut self ,
0 commit comments