Rollup merge of #71545 - Askaholic:patch-1, r=jonas-schievink

Fix comment in docstring example for Error::kind

Saw it while reading the docs.
This commit is contained in:
Dylan DPC 2020-04-25 18:30:32 +02:00 committed by GitHub
commit ecef6c7c80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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!"));
/// }
/// ```