From b0b3cc1fe0aeba544376ec9401a57a86b4a92e80 Mon Sep 17 00:00:00 2001 From: timofey Date: Sun, 30 Jul 2023 13:59:59 +0000 Subject: [PATCH] mention wrappers in `Mode` docs --- src/rcore/modes.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/rcore/modes.rs b/src/rcore/modes.rs index c724345..87e4b8b 100644 --- a/src/rcore/modes.rs +++ b/src/rcore/modes.rs @@ -36,7 +36,7 @@ pub trait Mode { /// Do something with the successfully parsed value, potentially failing. /// - /// Useful for chaining parsing after [`InliningFactory`]. + /// Useful for for wrappers and chaining parsing after [`InliningFactory`]. /// /// See also [`Mode::map`] /// @@ -48,6 +48,8 @@ pub trait Mode { /// Map the successfully parsed value. /// + /// Useful for for wrappers. + /// /// See also [`Mode::bind`] fn map( s: Self::ParseSuccess, @@ -64,7 +66,7 @@ pub trait Mode { /// Do something with the extension result, potentially failing. /// - /// Useful for chaining extension after [`InliningFactory`]. + /// Useful for wrappers and chaining extension after [`InliningFactory`]. /// /// [`InliningFactory`]: crate::rstd::inlining::InliningFactory fn xbind(