diff options
| author | binarycat <binarycat@envs.net> | 2024-11-08 09:51:46 -0600 |
|---|---|---|
| committer | binarycat <binarycat@envs.net> | 2024-11-08 10:43:34 -0600 |
| commit | b004cac72ef9e0b4ab2d47a6bbb1a543659b1e2b (patch) | |
| tree | 5c6a4a21a67ba832bf114ed972cda33197217a25 | |
| parent | 7028d9318fadc20e5e3058d52e44d785d31a6aaa (diff) | |
| download | rust-b004cac72ef9e0b4ab2d47a6bbb1a543659b1e2b.tar.gz rust-b004cac72ef9e0b4ab2d47a6bbb1a543659b1e2b.zip | |
update io::Error::into_inner to acknowlage io::Error::other
| -rw-r--r-- | library/std/src/io/error.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/library/std/src/io/error.rs b/library/std/src/io/error.rs index adf103e9430..5d7adcace52 100644 --- a/library/std/src/io/error.rs +++ b/library/std/src/io/error.rs @@ -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 /// |
