mirror of
https://gitee.com/openharmony/third_party_rust_nom
synced 2024-11-23 15:40:19 +00:00
fix doc typo
Both take_till_s and take_till1_s recieve function of type "char -> bool" instead of "&str -> bool".
This commit is contained in:
parent
b226aa8b6a
commit
5faaf5a91f
@ -186,7 +186,7 @@ macro_rules! take_while1_s (
|
||||
);
|
||||
|
||||
|
||||
/// `take_till_s!(&str -> bool) => &str -> IResult<&str, &str>`
|
||||
/// `take_till_s!(char -> bool) => &str -> IResult<&str, &str>`
|
||||
/// returns the longest list of characters until the provided function succeeds
|
||||
///
|
||||
/// The argument is either a function `char -> bool` or a macro returning a `bool
|
||||
@ -202,7 +202,7 @@ macro_rules! take_till_s (
|
||||
);
|
||||
);
|
||||
|
||||
/// `take_till1_s!(&str -> bool) => &str -> IResult<&str, &str>`
|
||||
/// `take_till1_s!(char -> bool) => &str -> IResult<&str, &str>`
|
||||
/// returns the longest non empty list of characters until the provided function succeeds
|
||||
///
|
||||
/// The argument is either a function `char -> bool` or a macro returning a `bool
|
||||
|
Loading…
Reference in New Issue
Block a user