Skip to content

Commit f1962f7

Browse files
committed
Update documentation and doctest for anychar
Signed-off-by: Tin Švagelj <[email protected]>
1 parent a44b52e commit f1962f7

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/character/complete.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,7 @@ where
269269
char('\t')(input)
270270
}
271271

272-
/// Matches one byte as a character. Note that the input type will
273-
/// accept a `str`, but not a `&[u8]`, unlike many other nom parsers.
272+
/// Matches one byte as a character.
274273
///
275274
/// *Complete version*: Will return an error if there's not enough input data.
276275
/// # Example

src/character/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,13 +251,12 @@ where
251251
}
252252
}
253253

254-
// Matches one byte as a character. Note that the input type will
255-
/// accept a `str`, but not a `&[u8]`, unlike many other nom parsers.
254+
/// Matches one byte as a character.
256255
///
257256
/// # Example
258257
///
259258
/// ```
260-
/// # use nom::{character::complete::anychar, Err, error::{Error, ErrorKind}, IResult};
259+
/// # use nom::{character::anychar, Err, error::{Error, ErrorKind}, IResult};
261260
/// fn parser(input: &str) -> IResult<&str, char> {
262261
/// anychar(input)
263262
/// }

0 commit comments

Comments
 (0)