Skip to content

Commit b004cac

Browse files
committed
update io::Error::into_inner to acknowlage io::Error::other
1 parent 7028d93 commit b004cac

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

library/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)