Skip to content

Commit

Permalink
Correctly parenthesize dyn Error + 'static.
Browse files Browse the repository at this point in the history
  • Loading branch information
Without Boats committed Aug 20, 2018
1 parent a49e1ed commit e2e4f57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
/// }
/// }
Expand Down

0 comments on commit e2e4f57

Please sign in to comment.