From 70eed322832121593bc1002cc94fc0cfd20c86d2 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Mon, 3 Feb 2025 10:27:47 -0600 Subject: [PATCH] docs(error): Update into_inner for 0.7 API --- src/error.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 {