Skip to content

Commit 36e74ab

Browse files
authored
Fix indentation in nom::combinator::into example (#1761)
1 parent 2560d5c commit 36e74ab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/combinator/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -845,11 +845,11 @@ where
845845
/// use nom::character::complete::alpha1;
846846
/// # fn main() {
847847
///
848-
/// fn parser1(i: &str) -> IResult<&str, &str> {
849-
/// alpha1(i)
850-
/// }
848+
/// fn parser1(i: &str) -> IResult<&str, &str> {
849+
/// alpha1(i)
850+
/// }
851851
///
852-
/// let mut parser2 = into(parser1);
852+
/// let mut parser2 = into(parser1);
853853
///
854854
/// // the parser converts the &str output of the child parser into a Vec<u8>
855855
/// let bytes: IResult<&str, Vec<u8>> = parser2.parse("abcd");

0 commit comments

Comments
 (0)