about summary refs log tree commit diff
path: root/src/libstd/error.rs
diff options
context:
space:
mode:
authorVickenty Fesunov <vickenty@users.noreply.github.com>2016-11-25 17:59:04 +0100
committerGitHub <noreply@github.com>2016-11-25 17:59:04 +0100
commita3ce39898c6d534dd75fb617f985fc7bc8c8fb29 (patch)
tree970e8bc32ee604a97f376d21bdf2ac3e20603ab5 /src/libstd/error.rs
parentc78cc52afd99ec0b3dd7f83cd257f0be767a508a (diff)
downloadrust-a3ce39898c6d534dd75fb617f985fc7bc8c8fb29.tar.gz
rust-a3ce39898c6d534dd75fb617f985fc7bc8c8fb29.zip
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
Diffstat (limited to 'src/libstd/error.rs')
-rw-r--r--src/libstd/error.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/error.rs b/src/libstd/error.rs
index 454fa47cfbc..e115263d2eb 100644
--- a/src/libstd/error.rs
+++ b/src/libstd/error.rs
@@ -109,7 +109,7 @@ pub trait Error: Debug + Display {
     ///
     /// impl Error for SuperError {
     ///     fn description(&self) -> &str {
-    ///         "I'm the superhero of errors!"
+    ///         "I'm the superhero of errors"
     ///     }
     ///
     ///     fn cause(&self) -> Option<&Error> {
@@ -128,7 +128,7 @@ pub trait Error: Debug + Display {
     ///
     /// impl Error for SuperErrorSideKick {
     ///     fn description(&self) -> &str {
-    ///         "I'm SuperError side kick!"
+    ///         "I'm SuperError side kick"
     ///     }
     /// }
     ///