From d19be6dfc8a0d9739e45dfa7a65c04bfc7143b14 Mon Sep 17 00:00:00 2001 From: edwloef Date: Thu, 17 Apr 2025 16:30:44 +0200 Subject: [PATCH] fix doc comment of `Length::is_fill` --- core/src/length.rs | 4 ++-- core/src/text/paragraph.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/length.rs b/core/src/length.rs index 363833c4..f4722145 100644 --- a/core/src/length.rs +++ b/core/src/length.rs @@ -37,8 +37,8 @@ impl Length { } } - /// Returns `true` iff the [`Length`] is either [`Length::Fill`] or - // [`Length::FillPortion`]. + /// Returns `true` if the [`Length`] is either [`Length::Fill`] or + /// [`Length::FillPortion`]. pub fn is_fill(&self) -> bool { self.fill_factor() != 0 } diff --git a/core/src/text/paragraph.rs b/core/src/text/paragraph.rs index ff859470..828b66b6 100644 --- a/core/src/text/paragraph.rs +++ b/core/src/text/paragraph.rs @@ -46,7 +46,7 @@ pub trait Paragraph: Sized + Default { /// Returns the [`Shaping`] strategy of the [`Paragraph`]> fn shaping(&self) -> Shaping; - /// Returns the availalbe bounds used to layout the [`Paragraph`]. + /// Returns the available bounds used to layout the [`Paragraph`]. fn bounds(&self) -> Size; /// Returns the minimum boundaries that can fit the contents of the