about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorSeo Sanghyeon <sanxiyn@gmail.com>2016-11-26 22:02:14 +0900
committerGitHub <noreply@github.com>2016-11-26 22:02:14 +0900
commitf9f92e12c7cd00da8b5642e68025a7e833e5b9cb (patch)
tree1c7ac58c95cd0bbcfcd41b514745a3968f77a13c /src/libstd
parent18f4006e09903ae293622ae59e034bcde39e906a (diff)
parenta3ce39898c6d534dd75fb617f985fc7bc8c8fb29 (diff)
downloadrust-f9f92e12c7cd00da8b5642e68025a7e833e5b9cb.tar.gz
rust-f9f92e12c7cd00da8b5642e68025a7e833e5b9cb.zip
Rollup merge of #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
Diffstat (limited to 'src/libstd')
-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"
     ///     }
     /// }
     ///