Skip to content

Commit baa854f

Browse files
Add missing urls for error module
1 parent fe36876 commit baa854f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/libstd/error.rs

+8-4
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
//! # The `Error` trait
1414
//!
1515
//! `Error` is a trait representing the basic expectations for error values,
16-
//! i.e. values of type `E` in `Result<T, E>`. At a minimum, errors must provide
16+
//! i.e. values of type `E` in [`Result<T, E>`]. At a minimum, errors must provide
1717
//! a description, but they may optionally provide additional detail (via
18-
//! `Display`) and cause chain information:
18+
//! [`Display`]) and cause chain information:
1919
//!
2020
//! ```
2121
//! use std::fmt::Display;
@@ -27,12 +27,16 @@
2727
//! }
2828
//! ```
2929
//!
30-
//! The `cause` method is generally used when errors cross "abstraction
30+
//! The [`cause`] method is generally used when errors cross "abstraction
3131
//! boundaries", i.e. when a one module must report an error that is "caused"
3232
//! by an error from a lower-level module. This setup makes it possible for the
3333
//! high-level module to provide its own errors that do not commit to any
3434
//! particular implementation, but also reveal some of its implementation for
35-
//! debugging via `cause` chains.
35+
//! debugging via [`cause`] chains.
36+
//!
37+
//! [`Result<T, E>`]: ../result/enum.Result.html
38+
//! [`Display`]: ../fmt/trait.Display.html
39+
//! [`cause`]: trait.Error.html#method.cause
3640
3741
#![stable(feature = "rust1", since = "1.0.0")]
3842

0 commit comments

Comments
 (0)