diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-03-21 22:56:25 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-21 22:56:25 +0100 |
| commit | 36d6e94831a66641900495e491b3f910537cde1e (patch) | |
| tree | 5a89d15d0ae6dcad5f0667c73d0a19938ae00b4d /src/libstd/error.rs | |
| parent | 8e905334133aa517d208819b085b685f512a3272 (diff) | |
| parent | 1d004bddee33fcae51611b0a83569052692ce15b (diff) | |
| download | rust-36d6e94831a66641900495e491b3f910537cde1e.tar.gz rust-36d6e94831a66641900495e491b3f910537cde1e.zip | |
Rollup merge of #70218 - intgr:fix-deprecated-method-in-docs, r=jonas-schievink
Fix deprecated Error.description() usage in docs
Diffstat (limited to 'src/libstd/error.rs')
| -rw-r--r-- | src/libstd/error.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/error.rs b/src/libstd/error.rs index 2a370f19296..b394f2efc2e 100644 --- a/src/libstd/error.rs +++ b/src/libstd/error.rs @@ -88,7 +88,7 @@ pub trait Error: Debug + Display { /// fn main() { /// match get_super_error() { /// Err(e) => { - /// println!("Error: {}", e.description()); + /// println!("Error: {}", e); /// println!("Caused by: {}", e.source().unwrap()); /// } /// _ => println!("No error"), |
