This commit is contained in:
2026-04-29 12:25:38 +07:00
parent 21056bc624
commit 4eb90e7c52

View File

@@ -22,7 +22,7 @@ impl Rectangle {
return Rectangle { width: l, hight: l };
}
fn can_hold(& self, rect_insert:& Rectangle) -> bool {
fn can_hold(&self, rect_insert:&Rectangle) -> bool {
let mut width_holdable = false;
let mut hight_holdable = false;
if self.width > rect_insert.width || self.width > rect_insert.hight {
@@ -41,7 +41,7 @@ impl Rectangle {
return hold_result;
}
fn area(& self) -> u64 {
fn area(&self) -> u64 {
return self.hight * self.width
}