Skip to content

Commit d44a7cc

Browse files
authored
Fix the documentation of what certain parse functions return (#372)
1 parent 50b3203 commit d44a7cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/parser.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ impl<'i: 't, 't> Parser<'i, 't> {
677677
}
678678

679679
/// Have the given closure parse something, then check the the input is exhausted.
680-
/// The result is overridden to `Err(())` if some input remains.
680+
/// The result is overridden to an `Err(..)` if some input remains.
681681
///
682682
/// This can help tell e.g. `color: green;` from `color: green 4px;`
683683
#[inline]
@@ -767,7 +767,7 @@ impl<'i: 't, 't> Parser<'i, 't> {
767767
/// The given closure is called with a "delimited" parser
768768
/// that stops at the end of the block or function (at the matching closing token).
769769
///
770-
/// The result is overridden to `Err(())` if the closure leaves some input before that point.
770+
/// The result is overridden to an `Err(..)` if the closure leaves some input before that point.
771771
#[inline]
772772
pub fn parse_nested_block<F, T, E>(&mut self, parse: F) -> Result<T, ParseError<'i, E>>
773773
where
@@ -783,7 +783,7 @@ impl<'i: 't, 't> Parser<'i, 't> {
783783
/// that stops before the first character at this block/function nesting level
784784
/// that matches the given set of delimiters, or at the end of the input.
785785
///
786-
/// The result is overridden to `Err(())` if the closure leaves some input before that point.
786+
/// The result is overridden to an `Err(..)` if the closure leaves some input before that point.
787787
#[inline]
788788
pub fn parse_until_before<F, T, E>(
789789
&mut self,

0 commit comments

Comments
 (0)