diff options
| author | Marti Raudsepp <marti@juffo.org> | 2020-03-21 12:33:52 +0200 |
|---|---|---|
| committer | Marti Raudsepp <marti@juffo.org> | 2020-03-21 12:33:52 +0200 |
| commit | 1d004bddee33fcae51611b0a83569052692ce15b (patch) | |
| tree | 7e354308156cc89dbb0e3fa5155facb19f28aee7 | |
| parent | 1057dc97afce39ff6a224966ece3ed438af4c1f5 (diff) | |
| download | rust-1d004bddee33fcae51611b0a83569052692ce15b.tar.gz rust-1d004bddee33fcae51611b0a83569052692ce15b.zip | |
Fix deprecated Error.description() usage in docs
| -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"), |
