Skip to content

Commit

Permalink
Rollup merge of rust-lang#36928 - GuillaumeGomez:error_urls, r=stevek…
Browse files Browse the repository at this point in the history
…labnik

Add missing urls for error module

r? @steveklabnik
  • Loading branch information
Manishearth authored Oct 4, 2016
2 parents 5c55db9 + baa854f commit 05e412a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/libstd/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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")]

Expand Down

0 comments on commit 05e412a

Please sign in to comment.