Skip to content

Commit

Permalink
Fix indentation in nom::combinator::into example (#1761)
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed May 12, 2024
1 parent 2560d5c commit 36e74ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/combinator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -845,11 +845,11 @@ where
/// use nom::character::complete::alpha1;
/// # fn main() {
///
/// fn parser1(i: &str) -> IResult<&str, &str> {
/// alpha1(i)
/// }
/// fn parser1(i: &str) -> IResult<&str, &str> {
/// alpha1(i)
/// }
///
/// let mut parser2 = into(parser1);
/// let mut parser2 = into(parser1);
///
/// // the parser converts the &str output of the child parser into a Vec<u8>
/// let bytes: IResult<&str, Vec<u8>> = parser2.parse("abcd");
Expand Down

0 comments on commit 36e74ab

Please sign in to comment.