1
Fork 0

Correctly parenthesize dyn Error + 'static.

This commit is contained in:
Without Boats 2018-08-21 00:58:52 +02:00
parent a49e1ed0cf
commit e2e4f57bf8
No known key found for this signature in database
GPG key ID: 174625E5E877C0D9

View file

@ -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)
/// }
/// }