Skip to content

Commit

Permalink
fix doctest compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal committed Aug 18, 2018
1 parent 0009b60 commit 10323c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/multi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,11 @@ macro_rules! many0(
/// assert_eq!(multi(&a[..]), Ok((&b"efgh"[..], res)));
/// assert_eq!(multi(&b[..]), Err(Err::Error(error_position!(&b[..], ErrorKind::Many1))));
///
/// named!(multi_complete<CompleteByteSlice, Vec<CompleteByteSlice> >, many1!( tag!( "abcd" ) ) );
/// let c = CompleteByteSlice(b"abcdabcd");
///
/// let res = vec![CompleteByteSlice(b"abcd"), CompleteByteSlice(b"abcd")];
/// assert_eq!(multi(c), Ok((CompleteByteSlice(b""), res)));
/// assert_eq!(multi_complete(c), Ok((CompleteByteSlice(b""), res)));
/// # }
/// ```
#[cfg(feature = "alloc")]
Expand Down

0 comments on commit 10323c7

Please sign in to comment.