Merge pull request #2892 from edwloef/fix_is_fill_docs

fix doc comment of `Length::is_fill`
This commit is contained in:
Héctor 2025-11-25 10:43:56 +01:00 committed by GitHub
commit a3db4477b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -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
}

View file

@ -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