Skip to content

Commit d8aba10

Browse files
NobodyXuyaahc
andauthored
Improve example of downcast
Co-authored-by: Jane Losare-Lusby <jlusby42@gmail.com>
1 parent 111253c commit d8aba10

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: library/std/src/io/error.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -821,9 +821,10 @@ impl Error {
821821
/// }
822822
///
823823
/// impl fmt::Display for E {
824-
/// fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
825-
/// todo!()
826-
/// }
824+
/// // ...
825+
/// # fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
826+
/// # todo!()
827+
/// # }
827828
/// }
828829
/// impl Error for E {}
829830
///

0 commit comments

Comments
 (0)