Fix some typos (#5339)

The spell check pipeline in #5313 suddenly failed, this fixes these
typos and some more found via my IDEs spell checker tool
This commit is contained in:
lucasmerlin 2024-11-04 09:51:34 +01:00 committed by GitHub
parent ad14bf2490
commit 5d6a58b917
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 9 additions and 9 deletions

View File

@ -6,7 +6,7 @@ use super::{
}; };
use web_sys::EventTarget; use web_sys::EventTarget;
// TODO(emilk): there are more calls to `prevent_default` and `stop_propagaton` // TODO(emilk): there are more calls to `prevent_default` and `stop_propagation`
// than what is probably needed. // than what is probably needed.
// ------------------------------------------------------------------------ // ------------------------------------------------------------------------

View File

@ -6,7 +6,7 @@ use crate::{epi, App};
use super::{events, text_agent::TextAgent, AppRunner, PanicHandler}; use super::{events, text_agent::TextAgent, AppRunner, PanicHandler};
/// This is how `eframe` runs your wepp application /// This is how `eframe` runs your web application
/// ///
/// This is cheap to clone. /// This is cheap to clone.
/// ///

View File

@ -730,7 +730,7 @@ struct ResizeInteraction {
bottom: SideResponse, bottom: SideResponse,
} }
/// A minitature version of `Response`, for each side of the window. /// A miniature version of `Response`, for each side of the window.
#[derive(Clone, Copy, Debug, Default)] #[derive(Clone, Copy, Debug, Default)]
struct SideResponse { struct SideResponse {
hover: bool, hover: bool,

View File

@ -5,7 +5,7 @@ use crate::{Id, LayerId, Layout, Rect, Sense, Style, UiStackInfo};
#[allow(unused_imports)] // Used for doclinks #[allow(unused_imports)] // Used for doclinks
use crate::Ui; use crate::Ui;
/// Build a [`Ui`] as the chlild of another [`Ui`]. /// Build a [`Ui`] as the child of another [`Ui`].
/// ///
/// By default, everything is inherited from the parent, /// By default, everything is inherited from the parent,
/// except for `max_rect` which by default is set to /// except for `max_rect` which by default is set to

View File

@ -39,7 +39,7 @@ impl<Value, Computer> FrameCache<Value, Computer> {
} }
/// Must be called once per frame to clear the cache. /// Must be called once per frame to clear the cache.
pub fn evice_cache(&mut self) { pub fn evict_cache(&mut self) {
let current_generation = self.generation; let current_generation = self.generation;
self.cache.retain(|_key, cached| { self.cache.retain(|_key, cached| {
cached.0 == current_generation // only keep those that were used this frame cached.0 == current_generation // only keep those that were used this frame
@ -89,7 +89,7 @@ impl<Value: 'static + Send + Sync, Computer: 'static + Send + Sync> CacheTrait
for FrameCache<Value, Computer> for FrameCache<Value, Computer>
{ {
fn update(&mut self) { fn update(&mut self) {
self.evice_cache(); self.evict_cache();
} }
fn len(&self) -> usize { fn len(&self) -> usize {

View File

@ -19,7 +19,7 @@
//! ### Deferred viewports //! ### Deferred viewports
//! These are created with [`Context::show_viewport_deferred`]. //! These are created with [`Context::show_viewport_deferred`].
//! Deferred viewports take a closure that is called by the integration at a later time, perhaps multiple times. //! Deferred viewports take a closure that is called by the integration at a later time, perhaps multiple times.
//! Deferred viewports are repainted independenantly of the parent viewport. //! Deferred viewports are repainted independently of the parent viewport.
//! This means communication with them needs to be done via channels, or `Arc/Mutex`. //! This means communication with them needs to be done via channels, or `Arc/Mutex`.
//! //!
//! This is the most performant type of child viewport, though a bit more cumbersome to work with compared to immediate viewports. //! This is the most performant type of child viewport, though a bit more cumbersome to work with compared to immediate viewports.

View File

@ -2029,8 +2029,8 @@ impl Tessellator {
use rayon::prelude::*; use rayon::prelude::*;
// We only parallelize large/slow stuff, because each tessellation job // We only parallelize large/slow stuff, because each tessellation job
// will allocate a new Mesh, and so it creates a lot of extra memory framentation // will allocate a new Mesh, and so it creates a lot of extra memory fragmentation
// and callocations that is only worth it for large shapes. // and allocations that is only worth it for large shapes.
fn should_parallelize(shape: &Shape) -> bool { fn should_parallelize(shape: &Shape) -> bool {
match shape { match shape {
Shape::Vec(shapes) => 4 < shapes.len() || shapes.iter().any(should_parallelize), Shape::Vec(shapes) => 4 < shapes.len() || shapes.iter().any(should_parallelize),