Skip to content

Commit

Permalink
Fix comment in docstring example for Error::kind
Browse files Browse the repository at this point in the history
  • Loading branch information
Askaholic authored Apr 25, 2020
1 parent 40008dc commit 19c29c4
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 19c29c4

Please sign in to comment.