Skip to content

Commit 3812af6

Browse files
committed
Add a human-readable string for FloatIsNaN::display
Fixes #24.
1 parent 8645205 commit 3812af6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ impl Error for FloatIsNan {
562562

563563
impl fmt::Display for FloatIsNan {
564564
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
565-
<Self as fmt::Debug>::fmt(self, f)
565+
write!(f, "NotNan constructed with NaN")
566566
}
567567
}
568568

0 commit comments

Comments
 (0)