Skip to content

Commit

Permalink
fix(multi): Deprecate many_count for many
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Feb 3, 2023
1 parent 1143731 commit d009a7b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/multi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,9 @@ where
/// assert_eq!(parser("123123"), Ok(("123123", 0)));
/// assert_eq!(parser(""), Ok(("", 0)));
/// ```
///
/// **WARNING:** Deprecated, replaced with [`many0`]
#[deprecated(since = "0.3.0", note = "Replaced with `many0`")]
pub fn many0_count<I, O, E, F>(mut f: F) -> impl FnMut(I) -> IResult<I, usize, E>
where
I: Input,
Expand Down Expand Up @@ -481,6 +484,9 @@ where
/// assert_eq!(parser("123123"), Err(ErrMode::Backtrack(Error::new("123123", ErrorKind::Many1Count))));
/// assert_eq!(parser(""), Err(ErrMode::Backtrack(Error::new("", ErrorKind::Many1Count))));
/// ```
///
/// **WARNING:** Deprecated, replaced with [`many0`]
#[deprecated(since = "0.3.0", note = "Replaced with `many0`")]
pub fn many1_count<I, O, E, F>(mut f: F) -> impl FnMut(I) -> IResult<I, usize, E>
where
I: Input,
Expand Down

0 comments on commit d009a7b

Please sign in to comment.