about summary refs log tree commit diff
path: root/src/libstd/error.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2016-10-03 17:20:39 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2016-10-03 17:20:39 +0200
commitbaa854f1678bcab8df65e4f3b450f00017154def (patch)
tree80ba3853089f0a53fff5cdf88621c2a9bd6c3a6e /src/libstd/error.rs
parentfe36876ce144e6f30fa6d0d5647e54ade812b169 (diff)
downloadrust-baa854f1678bcab8df65e4f3b450f00017154def.tar.gz
rust-baa854f1678bcab8df65e4f3b450f00017154def.zip
Add missing urls for error module
Diffstat (limited to 'src/libstd/error.rs')
-rw-r--r--src/libstd/error.rs12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/libstd/error.rs b/src/libstd/error.rs
index 16290620010..0671c19a477 100644
--- a/src/libstd/error.rs
+++ b/src/libstd/error.rs
@@ -13,9 +13,9 @@
 //! # The `Error` trait
 //!
 //! `Error` is a trait representing the basic expectations for error values,
-//! i.e. values of type `E` in `Result<T, E>`. At a minimum, errors must provide
+//! i.e. values of type `E` in [`Result<T, E>`]. At a minimum, errors must provide
 //! a description, but they may optionally provide additional detail (via
-//! `Display`) and cause chain information:
+//! [`Display`]) and cause chain information:
 //!
 //! ```
 //! use std::fmt::Display;
@@ -27,12 +27,16 @@
 //! }
 //! ```
 //!
-//! The `cause` method is generally used when errors cross "abstraction
+//! The [`cause`] method is generally used when errors cross "abstraction
 //! boundaries", i.e.  when a one module must report an error that is "caused"
 //! by an error from a lower-level module. This setup makes it possible for the
 //! high-level module to provide its own errors that do not commit to any
 //! particular implementation, but also reveal some of its implementation for
-//! debugging via `cause` chains.
+//! debugging via [`cause`] chains.
+//!
+//! [`Result<T, E>`]: ../result/enum.Result.html
+//! [`Display`]: ../fmt/trait.Display.html
+//! [`cause`]: trait.Error.html#method.cause
 
 #![stable(feature = "rust1", since = "1.0.0")]