From 058f4753b0cec2f86fd800d6ca5544206bf694ec Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Tue, 2 Apr 2024 09:55:13 +0200 Subject: [PATCH] Fix typos and false positives found by new version of 'typos' --- .typos.toml | 2 ++ crates/eframe/src/native/glow_integration.rs | 4 ++-- crates/egui/src/context.rs | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.typos.toml b/.typos.toml index 6d856495178..de51a691cc0 100644 --- a/.typos.toml +++ b/.typos.toml @@ -3,7 +3,9 @@ # run: typos [default.extend-words] +ime = "ime" # Input Method Editor nknown = "nknown" # part of @55nknown username +ro = "ro" # read-only, also part of the username @Phen-Ro [files] extend-exclude = ["web_demo/egui_demo_app.js"] # auto-generated diff --git a/crates/eframe/src/native/glow_integration.rs b/crates/eframe/src/native/glow_integration.rs index 84b3fd94528..7c9eada1ccc 100644 --- a/crates/eframe/src/native/glow_integration.rs +++ b/crates/eframe/src/native/glow_integration.rs @@ -714,7 +714,7 @@ impl GlowWinitRunning { #[cfg(feature = "__screenshot")] if integration.egui_ctx.frame_nr() == 2 { if let Ok(path) = std::env::var("EFRAME_SCREENSHOT_TO") { - save_screeshot_and_exit(&path, &painter, screen_size_in_pixels); + save_screenshot_and_exit(&path, &painter, screen_size_in_pixels); } } @@ -1498,7 +1498,7 @@ fn render_immediate_viewport( } #[cfg(feature = "__screenshot")] -fn save_screeshot_and_exit( +fn save_screenshot_and_exit( path: &str, painter: &egui_glow::Painter, screen_size_in_pixels: [u32; 2], diff --git a/crates/egui/src/context.rs b/crates/egui/src/context.rs index 1ee0b364136..aa8a0b13e32 100644 --- a/crates/egui/src/context.rs +++ b/crates/egui/src/context.rs @@ -2818,7 +2818,7 @@ impl Context { /// The `Context` lock is held while the given closure is called! /// /// Returns `None` if acesskit is off. - // TODO(emilk): consider making both RO and RW versions + // TODO(emilk): consider making both read-only and read-write versions #[cfg(feature = "accesskit")] pub fn accesskit_node_builder( &self,