Skip to content

Commit

Permalink
Rollup merge of rust-lang#37189 - nabeelomer:master, r=bluss
Browse files Browse the repository at this point in the history
Updated the docs for Error::description

Fixes rust-lang#37163
  • Loading branch information
GuillaumeGomez authored Oct 17, 2016
2 parents 1aac569 + 16b8957 commit 28416cb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/libstd/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,11 @@ use string;
pub trait Error: Debug + Display {
/// A short description of the error.
///
/// The description should not contain newlines or sentence-ending
/// punctuation, to facilitate embedding in larger user-facing
/// strings.
/// The description should only be used for a simple message.
/// It should not contain newlines or sentence-ending punctuation,
/// to facilitate embedding in larger user-facing strings.
/// For showing formatted error messages with more information see
/// [Display](https://doc.rust-lang.org/std/fmt/trait.Display.html).
///
/// # Examples
///
Expand Down

0 comments on commit 28416cb

Please sign in to comment.