Skip to content

Commit

Permalink
docs(error): Update into_inner for 0.7 API
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Feb 3, 2025
1 parent a46329b commit 70eed32
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ impl<E> ErrMode<E> {

/// 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<E, Self> {
match self {
Expand Down Expand Up @@ -225,7 +225,6 @@ impl<I: Stream, E: ParserError<I>> ParserError<I> for ErrMode<E> {
matches!(self, ErrMode::Backtrack(_))
}

/// Unwrap the mode, returning the underlying error
#[inline(always)]
fn into_inner(self) -> Result<Self::Inner, Self> {
match self {
Expand Down

0 comments on commit 70eed32

Please sign in to comment.