Skip to content

Commit 1d004bd

Browse files
committed
Fix deprecated Error.description() usage in docs
1 parent 1057dc9 commit 1d004bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/libstd/error.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ pub trait Error: Debug + Display {
8888
/// fn main() {
8989
/// match get_super_error() {
9090
/// Err(e) => {
91-
/// println!("Error: {}", e.description());
91+
/// println!("Error: {}", e);
9292
/// println!("Caused by: {}", e.source().unwrap());
9393
/// }
9494
/// _ => println!("No error"),

0 commit comments

Comments
 (0)