We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1aac569 + 16b8957 commit 28416cbCopy full SHA for 28416cb
src/libstd/error.rs
@@ -65,9 +65,11 @@ use string;
65
pub trait Error: Debug + Display {
66
/// A short description of the error.
67
///
68
- /// The description should not contain newlines or sentence-ending
69
- /// punctuation, to facilitate embedding in larger user-facing
70
- /// 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.
71
+ /// For showing formatted error messages with more information see
72
+ /// [Display](https://doc.rust-lang.org/std/fmt/trait.Display.html).
73
74
/// # Examples
75
0 commit comments