@@ -30,17 +30,17 @@ use string;
30
30
/// themselves through the [`Display`] and [`Debug`] traits, and may provide
31
31
/// cause chain information:
32
32
///
33
- /// The [`cause `] method is generally used when errors cross "abstraction
34
- /// boundaries", i.e., when a one module must report an error that is " caused"
35
- /// by an error from a lower-level module. This setup makes it possible for the
36
- /// high-level module to provide its own errors that do not commit to any
37
- /// particular implementation, but also reveal some of its implementation for
38
- /// debugging via [`cause `] chains.
33
+ /// The [`source `] method is generally used when errors cross "abstraction
34
+ /// boundaries". If one module must report an error that is caused by an error
35
+ /// from a lower-level module, it can allow access to that error via the
36
+ /// [`source`] method. This makes it possible for the high-level module to
37
+ /// provide its own errors while also revealing some of the implementation for
38
+ /// debugging via [`source `] chains.
39
39
///
40
40
/// [`Result<T, E>`]: ../result/enum.Result.html
41
41
/// [`Display`]: ../fmt/trait.Display.html
42
42
/// [`Debug`]: ../fmt/trait.Debug.html
43
- /// [`cause `]: trait.Error.html#method.cause
43
+ /// [`source `]: trait.Error.html#method.source
44
44
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
45
45
pub trait Error : Debug + Display {
46
46
/// **This method is soft-deprecated.**
0 commit comments