Skip to content

Commit

Permalink
docs: Fix Repeat::fold doc parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
SRv6d committed Sep 29, 2024
1 parent 405ac00 commit 93837d3
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 93837d3

Please sign in to comment.