Correctly parenthesize dyn Error + 'static.
This commit is contained in:
parent
a49e1ed0cf
commit
e2e4f57bf8
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
/// }
|
||||
/// }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue