Skip to content

Commit

Permalink
Updated the docs for Error::description
Browse files Browse the repository at this point in the history
  • Loading branch information
omern1 committed Oct 15, 2016
1 parent 030bc49 commit a1b50ad
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/libstd/error.rs
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 a1b50ad

Please sign in to comment.