about summary refs log tree commit diff
path: root/src/libstd/io/error.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-12-24 04:40:00 +0100
committerGitHub <noreply@github.com>2019-12-24 04:40:00 +0100
commit75b27ef59cd0eb95b50d0cde14b05e0079b3ebe9 (patch)
treef7d619542cf99b1d6cf6f0f01e175ca8355995fd /src/libstd/io/error.rs
parenta75968a7829bf140d66f896084c2dfbdcc79cd30 (diff)
parent24f3dcfdc741aaab0f1e56127455143912bc9203 (diff)
downloadrust-75b27ef59cd0eb95b50d0cde14b05e0079b3ebe9.tar.gz
rust-75b27ef59cd0eb95b50d0cde14b05e0079b3ebe9.zip
Rollup merge of #67561 - euclio:remove-description, r=jonas-schievink
remove `description` from `Error` impls in docs

Since `description` is soft-deprecated, there's no need to show it implemented in these examples.
Diffstat (limited to 'src/libstd/io/error.rs')
-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 {