mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
Rollup merge of #132778 - lolbinarycat:io-Error-into_inner-docs, r=cuviper
update io::Error::into_inner to acknowledge io::Error::other
This commit is contained in:
commit
dc647392d6
@ -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
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user