From 61f83d6de1e3e24ccd3f14d02c99a82bbaffc259 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 2 Mar 2025 23:12:51 +0100 Subject: [PATCH] Add a bug --- rectangles/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } }