Skip to content

Commit

Permalink
Rollup merge of #71545 - Askaholic:patch-1, r=jonas-schievink
Browse files Browse the repository at this point in the history
Fix comment in docstring example for Error::kind

Saw it while reading the docs.
  • Loading branch information
Dylan-DPC committed Apr 25, 2020
2 parents 9709785 + 19c29c4 commit ecef6c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/io/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!"));
/// }
/// ```
Expand Down

0 comments on commit ecef6c7

Please sign in to comment.