Skip to content

Commit

Permalink
Add doc aliases to Rect::is_zero_area, Size::is_zero_area (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored Aug 30, 2024
1 parent b5bd2aa commit 87290c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ impl Rect {
}

/// Whether this rectangle has zero area.
#[doc(alias = "is_empty")]
#[inline]
pub fn is_zero_area(&self) -> bool {
self.area() == 0.0
Expand Down
1 change: 1 addition & 0 deletions src/size.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ impl Size {
}

/// Whether this size has zero area.
#[doc(alias = "is_empty")]
#[inline]
pub fn is_zero_area(self) -> bool {
self.area() == 0.0
Expand Down

0 comments on commit 87290c7

Please sign in to comment.