about summary refs log tree commit diff
path: root/src/libstd/error.rs
diff options
context:
space:
mode:
authorWithout Boats <boats@mozilla.com>2018-08-21 00:58:52 +0200
committerWithout Boats <boats@mozilla.com>2018-08-21 00:58:52 +0200
commite2e4f57bf84ca3cbdb91ba9d235c12b46666d090 (patch)
tree8586e9a4ae940d8be3db0fac0253918835fc8be1 /src/libstd/error.rs
parenta49e1ed0cf3300a998499a125ed4b4d9464bc0cd (diff)
downloadrust-e2e4f57bf84ca3cbdb91ba9d235c12b46666d090.tar.gz
rust-e2e4f57bf84ca3cbdb91ba9d235c12b46666d090.zip
Correctly parenthesize dyn Error + 'static.
Diffstat (limited to 'src/libstd/error.rs')
-rw-r--r--src/libstd/error.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/error.rs b/src/libstd/error.rs
index 86d45e03f25..3de4a1bd417 100644
--- a/src/libstd/error.rs
+++ b/src/libstd/error.rs
@@ -168,7 +168,7 @@ pub trait Error: Debug + Display {
     ///         "I'm the superhero of errors"
     ///     }
     ///
-    ///     fn source(&self) -> Option<&dyn (Error + 'static)> {
+    ///     fn source(&self) -> Option<&(dyn Error + 'static)> {
     ///         Some(&self.side)
     ///     }
     /// }