Skip to content

Commit f9f92e1

Browse files
authored
Rollup merge of rust-lang#38001 - vickenty:patch-1, r=steveklabnik
Follow our own recommendations in the examples Remove exclamation marks from the the example error descriptions: > The description [...] should not contain newlines or sentence-ending punctuation
2 parents 18f4006 + a3ce398 commit f9f92e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/error.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ pub trait Error: Debug + Display {
109109
///
110110
/// impl Error for SuperError {
111111
/// fn description(&self) -> &str {
112-
/// "I'm the superhero of errors!"
112+
/// "I'm the superhero of errors"
113113
/// }
114114
///
115115
/// fn cause(&self) -> Option<&Error> {
@@ -128,7 +128,7 @@ pub trait Error: Debug + Display {
128128
///
129129
/// impl Error for SuperErrorSideKick {
130130
/// fn description(&self) -> &str {
131-
/// "I'm SuperError side kick!"
131+
/// "I'm SuperError side kick"
132132
/// }
133133
/// }
134134
///

0 commit comments

Comments
 (0)