about summary refs log tree commit diff
path: root/src/libstd/io
diff options
context:
space:
mode:
authorAndy Russell <arussell123@gmail.com>2019-12-23 09:47:28 -0600
committerAndy Russell <arussell123@gmail.com>2019-12-23 09:47:28 -0600
commit24f3dcfdc741aaab0f1e56127455143912bc9203 (patch)
treee472efb1c6d1a69af6e62159271b1e8db4718dbf /src/libstd/io
parent01a46509a4c2dc430ebebf940a26232fdaeeba81 (diff)
downloadrust-24f3dcfdc741aaab0f1e56127455143912bc9203.tar.gz
rust-24f3dcfdc741aaab0f1e56127455143912bc9203.zip
remove `description` from `Error` impls in docs
Diffstat (limited to 'src/libstd/io')
-rw-r--r--src/libstd/io/error.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libstd/io/error.rs b/src/libstd/io/error.rs
index c20bd3097b2..efe839d1302 100644
--- a/src/libstd/io/error.rs
+++ b/src/libstd/io/error.rs
@@ -402,9 +402,7 @@ impl Error {
     ///     }
     /// }
     ///
-    /// impl error::Error for MyError {
-    ///     fn description(&self) -> &str { &self.v }
-    /// }
+    /// impl error::Error for MyError {}
     ///
     /// impl Display for MyError {
     ///     fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {