about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-04-25 18:30:32 +0200
committerGitHub <noreply@github.com>2020-04-25 18:30:32 +0200
commitecef6c7c809eba2a4eed5e281f19ab7331998c6f (patch)
tree9f679d0e846fabde186bc86884c5e45dc6a5c3e9 /src/libstd
parent9709785d127964fe53f6cdf91b62363675f08e06 (diff)
parent19c29c4d9c17d12c9a49bb02b3f8231b90c82423 (diff)
downloadrust-ecef6c7c809eba2a4eed5e281f19ab7331998c6f.tar.gz
rust-ecef6c7c809eba2a4eed5e281f19ab7331998c6f.zip
Rollup merge of #71545 - Askaholic:patch-1, r=jonas-schievink
Fix comment in docstring example for Error::kind

Saw it while reading the docs.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/io/error.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/io/error.rs b/src/libstd/io/error.rs
index 3b55d9b9002..d80a38819ea 100644
--- a/src/libstd/io/error.rs
+++ b/src/libstd/io/error.rs
@@ -487,9 +487,9 @@ impl Error {
     /// }
     ///
     /// fn main() {
-    ///     // Will print "No inner error".
+    ///     // Will print "Other".
     ///     print_error(Error::last_os_error());
-    ///     // Will print "Inner error: ...".
+    ///     // Will print "AddrInUse".
     ///     print_error(Error::new(ErrorKind::AddrInUse, "oh no!"));
     /// }
     /// ```