From 6e3575b4c71c404865d072536da8c14924f47fcb Mon Sep 17 00:00:00 2001 From: lucasmerlin Date: Mon, 3 Mar 2025 11:40:28 +0100 Subject: [PATCH] Add `typ` to known words (#5754) This recently started to fail: https://github.com/emilk/egui/actions/runs/13628559355/job/38091065444?pr=5706 --- .typos.toml | 1 + crates/egui/src/data/input.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.typos.toml b/.typos.toml index db5bf48b..b9d882be 100644 --- a/.typos.toml +++ b/.typos.toml @@ -6,6 +6,7 @@ ime = "ime" # Input Method Editor nknown = "nknown" # part of @55nknown username ro = "ro" # read-only, also part of the username @Phen-Ro +typ = "typ" # Often used because `type` is a keyword in Rust # I mistype these so often tesalator = "tessellator" diff --git a/crates/egui/src/data/input.rs b/crates/egui/src/data/input.rs index 6b22ee7b..cc872524 100644 --- a/crates/egui/src/data/input.rs +++ b/crates/egui/src/data/input.rs @@ -1101,7 +1101,7 @@ impl RawInput { system_theme, } = self; - ui.label(format!("Active viwport: {viewport_id:?}")); + ui.label(format!("Active viewport: {viewport_id:?}")); for (id, viewport) in viewports { ui.group(|ui| { ui.label(format!("Viewport {id:?}"));