Add a bug

This commit is contained in:
Manuel Thalmann 2025-03-02 23:12:51 +01:00
parent 3787fe47fd
commit 61f83d6de1

View file

@ -13,7 +13,7 @@ impl Rectangle {
} }
fn can_hold(&self, other: &Rectangle) -> bool { fn can_hold(&self, other: &Rectangle) -> bool {
self.width > other.width && self.height > other.height self.width < other.width && self.height > other.height
} }
} }