diff --git a/rectangles/src/main.rs b/rectangles/src/main.rs index 579fff0..44a7eda 100644 --- a/rectangles/src/main.rs +++ b/rectangles/src/main.rs @@ -13,7 +13,7 @@ impl Rectangle { } fn can_hold(&self, other: &Rectangle) -> bool { - self.width > other.width && self.height > other.height + self.width < other.width && self.height > other.height } }