Skip to content

Commit

Permalink
Merge pull request #599 from SRv6d/fix-fold-arg-doc
Browse files Browse the repository at this point in the history
Adjust `Repeat::fold` doc parameter name to that of implementation
  • Loading branch information
epage authored Sep 30, 2024
2 parents 405ac00 + 93837d3 commit 8674ed2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/combinator/multi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,14 @@ where
Input: Stream,
Error: ParserError<Input>,
{
/// Repeats the embedded parser, calling `g` to gather the results
/// Repeats the embedded parser, calling `op` to gather the results
///
/// This stops before `n` when the parser returns [`ErrMode::Backtrack`]. To instead chain an error up, see
/// [`cut_err`][crate::combinator::cut_err].
///
/// # Arguments
/// * `init` A function returning the initial value.
/// * `g` The function that combines a result of `f` with
/// * `op` The function that combines a result of `f` with
/// the current accumulator.
///
/// **Warning:** If the parser passed to `fold` accepts empty inputs
Expand Down

0 comments on commit 8674ed2

Please sign in to comment.