Skip to content

Commit

Permalink
Improve example of downcast
Browse files Browse the repository at this point in the history
Co-authored-by: Jane Losare-Lusby <jlusby42@gmail.com>
  • Loading branch information
NobodyXu and yaahc authored Jul 15, 2022
1 parent 111253c commit d8aba10
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions library/std/src/io/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -821,9 +821,10 @@ impl Error {
/// }
///
/// impl fmt::Display for E {
/// fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
/// todo!()
/// }
/// // ...
/// # fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
/// # todo!()
/// # }
/// }
/// impl Error for E {}
///
Expand Down

0 comments on commit d8aba10

Please sign in to comment.