Commit 125ee92 1 parent 742a5ea commit 125ee92 Copy full SHA for 125ee92
File tree 4 files changed +10
-10
lines changed
4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -355,7 +355,7 @@ impl<W: WidgetRef> WidgetRef for Option<W> {
355
355
/// to a stateful widget and render it later. It also allows you to render boxed stateful widgets.
356
356
///
357
357
/// This trait was introduced in Ratatui 0.26.0 and is implemented for all the internal stateful
358
- /// widgets. Implemetors should prefer to implement this over the `StatefulWidget` trait and add an
358
+ /// widgets. Implementors should prefer to implement this over the `StatefulWidget` trait and add an
359
359
/// implementation of `StatefulWidget` that calls `StatefulWidgetRef::render_ref` where backwards
360
360
/// compatibility is required.
361
361
///
Original file line number Diff line number Diff line change 2
2
//!
3
3
//!
4
4
//!
5
- //! The [`Monthly`] widget will display a calendar for the monh provided in `display_date`. Days are
6
- //! styled using the default style unless:
5
+ //! The [`Monthly`] widget will display a calendar for the month provided in `display_date`. Days
6
+ //! are styled using the default style unless:
7
7
//! * `show_surrounding` is set, then days not in the `display_date` month will use that style.
8
8
//! * a style is returned by the [`DateStyler`] for the day
9
9
//!
Original file line number Diff line number Diff line change @@ -330,7 +330,7 @@ impl<'a> Dataset<'a> {
330
330
331
331
/// Sets the data points of this dataset
332
332
///
333
- /// Points will then either be rendered as scrattered points or with lines between them
333
+ /// Points will then either be rendered as scattered points or with lines between them
334
334
/// depending on [`Dataset::graph_type`].
335
335
///
336
336
/// Data consist in an array of `f64` tuples (`(f64, f64)`), the first element being X and the
@@ -493,7 +493,7 @@ pub struct Chart<'a> {
493
493
style : Style ,
494
494
/// Constraints used to determine whether the legend should be shown or not
495
495
hidden_legend_constraints : ( Constraint , Constraint ) ,
496
- /// The position detnermine where the legenth is shown or hide regaurdless of
496
+ /// The position determine where the length is shown or hide regardless of
497
497
/// `hidden_legend_constraints`
498
498
legend_position : Option < LegendPosition > ,
499
499
}
@@ -636,7 +636,7 @@ impl<'a> Chart<'a> {
636
636
/// let chart = Chart::new(vec![]).hidden_legend_constraints(constraints);
637
637
/// ```
638
638
///
639
- /// Always hide the legend. Note this can be accomplished more exclicitely by passing `None` to
639
+ /// Always hide the legend. Note this can be accomplished more explicitly by passing `None` to
640
640
/// [`Chart::legend_position`].
641
641
///
642
642
/// ```
Original file line number Diff line number Diff line change @@ -643,7 +643,7 @@ impl<'a> List<'a> {
643
643
/// - [`HighlightSpacing::Always`] will always allocate the spacing, regardless of whether an
644
644
/// item is selected or not. This means that the table will never change size, regardless of
645
645
/// if an item is selected or not.
646
- /// - [`HighlightSpacing::WhenSelected`] will only allocate the spacing if an itemis selected.
646
+ /// - [`HighlightSpacing::WhenSelected`] will only allocate the spacing if an item is selected.
647
647
/// This means that the table will shift when an item is selected. This is the default setting
648
648
/// for backwards compatibility, but it is recommended to use `HighlightSpacing::Always` for a
649
649
/// better user experience.
@@ -2127,9 +2127,9 @@ mod tests {
2127
2127
terminal. backend ( ) . assert_buffer ( & expected) ;
2128
2128
}
2129
2129
2130
- /// If there isnt enough room for the selected item and the requested padding the list can jump
2131
- /// up and down every frame if something isnt done about it. This code tests to make sure that
2132
- /// isnt currently happening
2130
+ /// If there isn't enough room for the selected item and the requested padding the list can jump
2131
+ /// up and down every frame if something isn't done about it. This code tests to make sure that
2132
+ /// isn't currently happening
2133
2133
#[ test]
2134
2134
fn test_padding_flicker ( ) {
2135
2135
let backend = backend:: TestBackend :: new ( 10 , 5 ) ;
You can’t perform that action at this time.
0 commit comments