Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6d54bfe

Browse files
committedNov 8, 2024
update io::Error::into_inner to acknowlage io::Error::other
1 parent 9e57964 commit 6d54bfe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎std/src/io/error.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -818,10 +818,12 @@ impl Error {
818818

819819
/// Consumes the `Error`, returning its inner error (if any).
820820
///
821-
/// If this [`Error`] was constructed via [`new`] then this function will
822-
/// return [`Some`], otherwise it will return [`None`].
821+
/// If this [`Error`] was constructed via [`new`] or [`other`],
822+
/// then this function will return [`Some`],
823+
/// otherwise it will return [`None`].
823824
///
824825
/// [`new`]: Error::new
826+
/// [`other`]: Error::other
825827
///
826828
/// # Examples
827829
///

0 commit comments

Comments
 (0)
Failed to load comments.