Skip to content

Commit 8ef4af3

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

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

library/std/src/io/error.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -818,8 +818,9 @@ 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
825826
///

0 commit comments

Comments
 (0)