summaryrefslogtreecommitdiffstats
path: root/vendor/winnow/src/trace/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/winnow/src/trace/mod.rs')
-rw-r--r--vendor/winnow/src/trace/mod.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/vendor/winnow/src/trace/mod.rs b/vendor/winnow/src/trace/mod.rs
index 59dafba8e..e5eaf9451 100644
--- a/vendor/winnow/src/trace/mod.rs
+++ b/vendor/winnow/src/trace/mod.rs
@@ -27,14 +27,14 @@ compile_error!("`debug` requires `std`");
///
/// ```rust
/// # use winnow::{error::ErrMode, error::{Error, ErrorKind}, error::Needed, IResult};
-/// # use winnow::bytes::take_while_m_n;
+/// # use winnow::token::take_while;
/// # use winnow::stream::AsChar;
/// # use winnow::prelude::*;
/// use winnow::trace::trace;
///
/// fn short_alpha(s: &[u8]) -> IResult<&[u8], &[u8]> {
/// trace("short_alpha",
-/// take_while_m_n(3, 6, AsChar::is_alpha)
+/// take_while(3..=6, AsChar::is_alpha)
/// ).parse_next(s)
/// }
///
@@ -46,6 +46,7 @@ compile_error!("`debug` requires `std`");
/// ```
#[cfg_attr(not(feature = "debug"), allow(unused_variables))]
#[cfg_attr(not(feature = "debug"), allow(unused_mut))]
+#[cfg_attr(not(feature = "debug"), inline(always))]
pub fn trace<I: Stream, O, E>(
name: impl crate::lib::std::fmt::Display,
mut parser: impl Parser<I, O, E>,