We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 948d48e commit 0b5cc19Copy full SHA for 0b5cc19
src/libstd/error.rs
@@ -40,16 +40,6 @@ use string;
40
/// a description, but they may optionally provide additional detail (via
41
/// [`Display`]) and cause chain information:
42
///
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
53
/// The [`cause`] method is generally used when errors cross "abstraction
54
/// boundaries", i.e. when a one module must report an error that is "caused"
55
/// by an error from a lower-level module. This setup makes it possible for the
0 commit comments