Skip to content

Commit

Permalink
Fix deprecated Error.description() usage in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
intgr committed Mar 21, 2020
1 parent 1057dc9 commit 1d004bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

1 comment on commit 1d004bd

@EverlastingBugstopper
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 thanks for this

Please sign in to comment.