about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorJubilee <workingjubilee@gmail.com>2024-11-08 20:46:13 -0800
committerGitHub <noreply@github.com>2024-11-08 20:46:13 -0800
commitdc647392d698aaf2eb5eba938fa4a5b8d328ed97 (patch)
tree0499da93a3043d31e714432f3468cdb0b290fe6c /library/std/src
parentb59884994104616434d4960753a2df210119f87f (diff)
parentb004cac72ef9e0b4ab2d47a6bbb1a543659b1e2b (diff)
downloadrust-dc647392d698aaf2eb5eba938fa4a5b8d328ed97.tar.gz
rust-dc647392d698aaf2eb5eba938fa4a5b8d328ed97.zip
Rollup merge of #132778 - lolbinarycat:io-Error-into_inner-docs, r=cuviper
update io::Error::into_inner to acknowledge io::Error::other
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/io/error.rs6
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
     ///