docs: fix misspellings (#2310)

This commit is contained in:
cgzones
2025-12-30 16:36:14 +01:00
committed by GitHub
parent d2b0ce17a4
commit fbd562117b
4 changed files with 5 additions and 5 deletions

View File

@@ -803,7 +803,7 @@ fn spans_after_width<'a>(
/// A trait for converting a value to a [`Line`].
///
/// This trait is automatically implemented for any type that implements the [`Display`] trait. As
/// such, `ToLine` shouln't be implemented directly: [`Display`] should be implemented instead, and
/// such, `ToLine` shouldn't be implemented directly: [`Display`] should be implemented instead, and
/// you get the `ToLine` implementation for free.
///
/// [`Display`]: std::fmt::Display

View File

@@ -474,7 +474,7 @@ impl Widget for &Span<'_> {
/// A trait for converting a value to a [`Span`].
///
/// This trait is automatically implemented for any type that implements the [`Display`] trait. As
/// such, `ToSpan` shouln't be implemented directly: [`Display`] should be implemented instead, and
/// such, `ToSpan` shouldn't be implemented directly: [`Display`] should be implemented instead, and
/// you get the `ToSpan` implementation for free.
///
/// [`Display`]: std::fmt::Display

View File

@@ -403,7 +403,7 @@ impl<'a> List<'a> {
///
/// # Example
///
/// A padding value of 1 will keep 1 item above and 1 item bellow visible if possible
/// A padding value of 1 will keep 1 item above and 1 item below visible if possible
///
/// ```rust
/// use ratatui::widgets::List;

View File

@@ -220,7 +220,7 @@ impl List<'_> {
let last_valid_index = self.items.len().saturating_sub(1);
let selected = selected?.min(last_valid_index);
// The bellow loop handles situations where the list item sizes may not be consistent,
// The below loop handles situations where the list item sizes may not be consistent,
// where the offset would have excluded some items that we want to include, or could
// cause the offset value to be set to an inconsistent value each time we render.
// The padding value will be reduced in case any of these issues would occur
@@ -1219,7 +1219,7 @@ mod tests {
assert_eq!(buffer, Buffer::with_lines(expected));
}
// Tests to make sure when it's pushing back the first visible index value that it doesnt
// Tests to make sure when it's pushing back the first visible index value that it doesn't
// include an item that's too large
#[test]
fn padding_offset_pushback_break() {