]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/io/error.rs
remove `description` from `Error` impls in docs
[rust.git] / src / libstd / io / error.rs
index c20bd3097b27dea93720d637d91db3a814ac85e1..efe839d1302fe4b6f6955e4b079a8a284d3450c8 100644 (file)
@@ -402,9 +402,7 @@ pub fn get_ref(&self) -> Option<&(dyn error::Error + Send + Sync + 'static)> {
     ///     }
     /// }
     ///
-    /// 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 {