Skip to content

Commit a1ab91f

Browse files
committed
Fix the documentation of what certain parse functions return
1 parent c3314d1 commit a1ab91f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/parser.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ impl<'i: 't, 't> Parser<'i, 't> {
678678
}
679679

680680
/// 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.
682682
///
683683
/// This can help tell e.g. `color: green;` from `color: green 4px;`
684684
#[inline]
@@ -748,7 +748,7 @@ impl<'i: 't, 't> Parser<'i, 't> {
748748
match self.parse_until_before(Delimiter::Comma, &mut parse_one) {
749749
Ok(v) => values.push(v),
750750
Err(e) if !ignore_errors => return Err(e),
751-
Err(_) => {},
751+
Err(_) => {}
752752
}
753753
match self.next() {
754754
Err(_) => return Ok(values),
@@ -768,7 +768,7 @@ impl<'i: 't, 't> Parser<'i, 't> {
768768
/// The given closure is called with a "delimited" parser
769769
/// that stops at the end of the block or function (at the matching closing token).
770770
///
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.
772772
#[inline]
773773
pub fn parse_nested_block<F, T, E>(&mut self, parse: F) -> Result<T, ParseError<'i, E>>
774774
where
@@ -784,7 +784,7 @@ impl<'i: 't, 't> Parser<'i, 't> {
784784
/// that stops before the first character at this block/function nesting level
785785
/// that matches the given set of delimiters, or at the end of the input.
786786
///
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.
788788
#[inline]
789789
pub fn parse_until_before<F, T, E>(
790790
&mut self,

0 commit comments

Comments
 (0)