docs: fix misspellings (#2310)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user