addition: Display

This commit is contained in:
2026-04-27 17:51:16 -06:00
parent 11d739e523
commit 99319f96ee

View File

@@ -154,7 +154,7 @@ impl ops::Neg for Fraction {
impl fmt::Display for Fraction { impl fmt::Display for Fraction {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
todo!() write!(f, "{0}/{1}", self.num, self.den)
} }
} }