From b0d64aaf0a05743abb41cd60b600bde2cd849b1c Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Thu, 16 Nov 2023 08:39:22 +0100 Subject: [PATCH] Fix typos --- crates/eframe/src/native/run.rs | 4 ++-- crates/egui/src/context.rs | 4 ++-- examples/multiple_viewports/src/main.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/eframe/src/native/run.rs b/crates/eframe/src/native/run.rs index cbec97de5..93412341a 100644 --- a/crates/eframe/src/native/run.rs +++ b/crates/eframe/src/native/run.rs @@ -1169,7 +1169,7 @@ mod glow_integration { builder, viewport_ui_cb, commands, - repaint_delay: _, // ignored - we listend to the repaint callback instead + repaint_delay: _, // ignored - we listened to the repaint callback instead }, ) in viewport_output { @@ -2679,7 +2679,7 @@ mod wgpu_integration { builder, viewport_ui_cb, commands, - repaint_delay: _, // ignored - we listend to the repaint callback instead + repaint_delay: _, // ignored - we listened to the repaint callback instead }, ) in viewport_output { diff --git a/crates/egui/src/context.rs b/crates/egui/src/context.rs index 43b7b879b..9bded6e16 100644 --- a/crates/egui/src/context.rs +++ b/crates/egui/src/context.rs @@ -2509,13 +2509,13 @@ impl Context { /// For integrations: Set this to render a sync viewport. /// /// This will only be set the callback for the current thread, - /// which mosty likely should be the main thread. + /// which most likely should be the main thread. /// /// When an immediate viewport is created with [`Self::show_viewport_immediate`] it will be rendered by this function. /// /// When called, the integration need to: /// * Check if there already is a window for this viewport id, and if not open one - /// * Set the window attributes (postion, size, …) based on [`ImmediateViewport::builder`]. + /// * Set the window attributes (position, size, …) based on [`ImmediateViewport::builder`]. /// * Call [`Context::run`] with [`ImmediateViewport::viewport_ui_cb`]. /// * Handle the output from [`Context::run`], including rendering #[allow(clippy::unused_self)] diff --git a/examples/multiple_viewports/src/main.rs b/examples/multiple_viewports/src/main.rs index 3293d52e6..794e6ecd6 100644 --- a/examples/multiple_viewports/src/main.rs +++ b/examples/multiple_viewports/src/main.rs @@ -27,7 +27,7 @@ struct MyApp { /// if either needs repainting, they are both repainted. show_immediate_viewport: bool, - /// Deferred viewports run independant of the parent viewport, which can save + /// Deferred viewports run independent of the parent viewport, which can save /// CPU if only some of the viewports require repainting. /// However, this requires passing state with `Arc` and locks. show_deferred_viewport: Arc,