Skip to content

Commit e2e4f57

Browse files
author
Without Boats
committed
Correctly parenthesize dyn Error + 'static.
1 parent a49e1ed commit e2e4f57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/error.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ pub trait Error: Debug + Display {
168168
/// "I'm the superhero of errors"
169169
/// }
170170
///
171-
/// fn source(&self) -> Option<&dyn (Error + 'static)> {
171+
/// fn source(&self) -> Option<&(dyn Error + 'static)> {
172172
/// Some(&self.side)
173173
/// }
174174
/// }

0 commit comments

Comments
 (0)