Skip to content

Commit

Permalink
Rollup merge of rust-lang#70218 - intgr:fix-deprecated-method-in-docs…
Browse files Browse the repository at this point in the history
…, r=jonas-schievink

Fix deprecated Error.description() usage in docs
  • Loading branch information
Dylan-DPC committed Mar 21, 2020
2 parents 4d38ac1 + 1d004bd commit ebc985e
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

0 comments on commit ebc985e

Please sign in to comment.