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:
Grissiom 2017-05-19 22:27:35 +08:00
parent b226aa8b6a
commit 5faaf5a91f

View File

@ -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