Skip to content

Commit ecef6c7

Browse files
authored
Rollup merge of #71545 - Askaholic:patch-1, r=jonas-schievink
Fix comment in docstring example for Error::kind Saw it while reading the docs.
2 parents 9709785 + 19c29c4 commit ecef6c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/io/error.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -487,9 +487,9 @@ impl Error {
487487
/// }
488488
///
489489
/// fn main() {
490-
/// // Will print "No inner error".
490+
/// // Will print "Other".
491491
/// print_error(Error::last_os_error());
492-
/// // Will print "Inner error: ...".
492+
/// // Will print "AddrInUse".
493493
/// print_error(Error::new(ErrorKind::AddrInUse, "oh no!"));
494494
/// }
495495
/// ```

0 commit comments

Comments
 (0)