Skip to content

Commit 36d6e94

Browse files
authored
Rollup merge of #70218 - intgr:fix-deprecated-method-in-docs, r=jonas-schievink
Fix deprecated Error.description() usage in docs
2 parents 8e90533 + 1d004bd commit 36d6e94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)