Skip to content

Commit 4bf974c

Browse files
Reduce typo count (#787)
1 parent bdf030b commit 4bf974c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/app_state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub struct AppState {
3030
pub(crate) scheduled_updates: Vec<FrameUpdate>,
3131
pub(crate) request_compute_layout: bool,
3232
pub(crate) request_paint: bool,
33-
// the bool idicates if this item is the root of the disabled item
33+
// the bool indicates if this item is the root of the disabled item
3434
pub(crate) disabled: HashSet<(ViewId, bool)>,
3535
pub(crate) keyboard_navigable: HashSet<ViewId>,
3636
pub(crate) draggable: HashSet<ViewId>,

src/views/virtual_stack.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ pub(crate) struct VirtualStackState<T> {
179179
/// This virtualization/lazy loading is done for performance and allows for lists of millions of items to be used with very high performance.
180180
///
181181
/// By default, this view tries to calculate and assume the size of the items in the list by calculating the size of the first item that is loaded.
182-
/// If all of your items are not of a consistent size in the relevent axis (ie a consistent width when flex_row or a consistent height when in flex_col) you will need to specify the size of the items using [`item_size_fixed`](VirtualStack::item_size_fixed) or [`item_size_fn`](VirtualStack::item_size_fn).
182+
/// If all of your items are not of a consistent size in the relevant axis (ie a consistent width when flex_row or a consistent height when in flex_col) you will need to specify the size of the items using [`item_size_fixed`](VirtualStack::item_size_fixed) or [`item_size_fn`](VirtualStack::item_size_fn).
183183
///
184184
/// ## Example
185185
/// ```
@@ -521,11 +521,11 @@ impl<T> View for VirtualStack<T> {
521521
.map(|layout| layout.size)
522522
.unwrap_or_default();
523523
let rect = Size::new(size.width as f64, size.height as f64).to_rect();
524-
let relevent_size = match self.direction.get_untracked() {
524+
let relevant_size = match self.direction.get_untracked() {
525525
FlexDirection::Column | FlexDirection::ColumnReverse => rect.height(),
526526
FlexDirection::Row | FlexDirection::RowReverse => rect.width(),
527527
};
528-
Some(relevent_size)
528+
Some(relevant_size)
529529
} else {
530530
None
531531
}

0 commit comments

Comments
 (0)