Skip to content

Commit 0b5cc19

Browse files
committed
Remove code definition of the Error trait from its doc-comment
It was out of date, and rustdoc already shows the same information.
1 parent 948d48e commit 0b5cc19

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/libstd/error.rs

-10
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,6 @@ use string;
4040
/// a description, but they may optionally provide additional detail (via
4141
/// [`Display`]) and cause chain information:
4242
///
43-
/// ```
44-
/// use std::fmt::Display;
45-
///
46-
/// trait Error: Display {
47-
/// fn description(&self) -> &str;
48-
///
49-
/// fn cause(&self) -> Option<&Error> { None }
50-
/// }
51-
/// ```
52-
///
5343
/// The [`cause`] method is generally used when errors cross "abstraction
5444
/// boundaries", i.e. when a one module must report an error that is "caused"
5545
/// by an error from a lower-level module. This setup makes it possible for the

0 commit comments

Comments
 (0)