Skip to content

Commit 978a553

Browse files
Rollup merge of rust-lang#132778 - lolbinarycat:io-Error-into_inner-docs, r=cuviper
update io::Error::into_inner to acknowledge io::Error::other
2 parents d90f866 + 6d54bfe commit 978a553

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)