Skip to content

Commit

Permalink
update io::Error::into_inner to acknowlage io::Error::other
Browse files Browse the repository at this point in the history
  • Loading branch information
lolbinarycat committed Nov 8, 2024
1 parent 9e57964 commit 6d54bfe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions std/src/io/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -818,10 +818,12 @@ impl Error {

/// Consumes the `Error`, returning its inner error (if any).
///
/// If this [`Error`] was constructed via [`new`] then this function will
/// return [`Some`], otherwise it will return [`None`].
/// If this [`Error`] was constructed via [`new`] or [`other`],
/// then this function will return [`Some`],
/// otherwise it will return [`None`].
///
/// [`new`]: Error::new
/// [`other`]: Error::other
///
/// # Examples
///
Expand Down

0 comments on commit 6d54bfe

Please sign in to comment.