diff --git a/doc/making_a_new_parser_from_scratch.md b/doc/making_a_new_parser_from_scratch.md index 8a87a396..04795729 100644 --- a/doc/making_a_new_parser_from_scratch.md +++ b/doc/making_a_new_parser_from_scratch.md @@ -189,10 +189,10 @@ This function wraps a parser that accepts a `&[u8]` as input and prints its hexdump if the child parser encountered an error: ```rust -use nom::{dbg_dmp, bytes::complete::tag}; +use nom::{IResult, error::dbg_dmp, bytes::complete::tag}; fn f(i: &[u8]) -> IResult<&[u8], &[u8]> { - dbg_dmp(tag("abcd"))(i) + dbg_dmp(tag("abcd"), "tag")(i) } let a = &b"efghijkl"[..];