diff --git a/src/error.rs b/src/error.rs index 42c7393c..747fd8fb 100644 --- a/src/error.rs +++ b/src/error.rs @@ -173,7 +173,7 @@ impl ErrMode { /// Unwrap the mode, returning the underlying error /// - /// Returns `None` for [`ErrMode::Incomplete`] + /// Returns `Err(self)`` for [`ErrMode::Incomplete`] #[inline(always)] pub fn into_inner(self) -> Result { match self { @@ -225,7 +225,6 @@ impl> ParserError for ErrMode { matches!(self, ErrMode::Backtrack(_)) } - /// Unwrap the mode, returning the underlying error #[inline(always)] fn into_inner(self) -> Result { match self {