From 40f13c6a6cff3dfd4f1b8a5fbfe58ca8d9bc450d Mon Sep 17 00:00:00 2001 From: eqsdxr Date: Fri, 26 Sep 2025 00:35:05 +0500 Subject: [PATCH] docs(rect): update the outdated comment for Rect::area() (#2100) The return value of Rect.area() is no longer of u16 type, and the value is not being clumped anymore. --- ratatui-core/src/layout/rect.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ratatui-core/src/layout/rect.rs b/ratatui-core/src/layout/rect.rs index 9dbbeefe..0e969344 100644 --- a/ratatui-core/src/layout/rect.rs +++ b/ratatui-core/src/layout/rect.rs @@ -164,8 +164,7 @@ impl Rect { } } - /// The area of the `Rect`. If the area is larger than the maximum value of `u16`, it will be - /// clamped to `u16::MAX`. + /// The area of the `Rect`. pub const fn area(self) -> u32 { (self.width as u32) * (self.height as u32) }