Skip to content

Commit

Permalink
Rollup merge of rust-lang#132778 - lolbinarycat:io-Error-into_inner-d…
Browse files Browse the repository at this point in the history
…ocs, r=cuviper

update io::Error::into_inner to acknowledge io::Error::other
  • Loading branch information
workingjubilee authored Nov 9, 2024
2 parents d90f866 + 6d54bfe commit 978a553
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 978a553

Please sign in to comment.