From 7d415519132e049b68bb7938ef65d4ee311d7e60 Mon Sep 17 00:00:00 2001 From: Manuel Innerhofer <31889615+manuel-i@users.noreply.github.com> Date: Sat, 5 Feb 2022 18:14:16 +0100 Subject: [PATCH] Fixed typos: wether -> whether (#1210) Co-authored-by: mir --- CHANGELOG.md | 2 +- egui/src/context.rs | 4 ++-- egui/src/id.rs | 4 ++-- egui/src/style.rs | 4 ++-- egui_demo_lib/src/apps/demo/tests.rs | 2 +- epi/src/lib.rs | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d06d5b67..0cf3f77a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -371,7 +371,7 @@ NOTE: [`epaint`](epaint/CHANGELOG.md), [`eframe`](eframe/CHANGELOG.md), [`egui_w ### Changed 🔧 * Text will now wrap at newlines, spaces, dashes, punctuation or in the middle of a words if necessary, in that order of priority. * Widgets will now always line break at `\n` characters. -* Widgets will now more intelligently choose wether or not to wrap text. +* Widgets will now more intelligently choose whether or not to wrap text. * `mouse` has been renamed `pointer` everywhere (to make it clear it includes touches too). * Most parts of `Response` are now methods, so `if ui.button("…").clicked {` is now `if ui.button("…").clicked() {`. * `Response::active` is now gone. You can use `response.dragged()` or `response.clicked()` instead. diff --git a/egui/src/context.rs b/egui/src/context.rs index 37e99cda..8b385069 100644 --- a/egui/src/context.rs +++ b/egui/src/context.rs @@ -900,12 +900,12 @@ impl Context { // --------------------------------------------------------------------- - /// Wether or not to debug widget layout on hover. + /// Whether or not to debug widget layout on hover. pub fn debug_on_hover(&self) -> bool { self.options().style.debug.debug_on_hover } - /// Turn on/off wether or not to debug widget layout on hover. + /// Turn on/off whether or not to debug widget layout on hover. pub fn set_debug_on_hover(&self, debug_on_hover: bool) { let mut style = (*self.options().style).clone(); style.debug.debug_on_hover = debug_on_hover; diff --git a/egui/src/id.rs b/egui/src/id.rs index da79bb2a..1b4883ff 100644 --- a/egui/src/id.rs +++ b/egui/src/id.rs @@ -8,7 +8,7 @@ /// moved outside the slider. /// /// For some widgets `Id`s are also used to persist some state about the -/// widgets, such as Window position or wether not a collapsing header region is open. +/// widgets, such as Window position or whether not a collapsing header region is open. /// /// This implies that the `Id`s must be unique. /// @@ -19,7 +19,7 @@ /// /// For things that need to persist state even after moving (windows, collapsing headers) /// the location of the widgets is obviously not good enough. For instance, -/// a collapsing region needs to remember wether or not it is open even +/// a collapsing region needs to remember whether or not it is open even /// if the layout next frame is different and the collapsing is not lower down /// on the screen. /// diff --git a/egui/src/style.rs b/egui/src/style.rs index f75d664d..a1430850 100644 --- a/egui/src/style.rs +++ b/egui/src/style.rs @@ -315,10 +315,10 @@ pub struct Visuals { /// /// If `text_color` is `None` (default), then the text color will be the same as the /// foreground stroke color (`WidgetVisuals::fg_stroke`) - /// and will depend on wether or not the widget is being interacted with. + /// and will depend on whether or not the widget is being interacted with. /// /// In the future we may instead modulate - /// the `text_color` based on wether or not it is interacted with + /// the `text_color` based on whether or not it is interacted with /// so that `visuals.text_color` is always used, /// but its alpha may be different based on whether or not /// it is disabled, non-interactive, hovered etc. diff --git a/egui_demo_lib/src/apps/demo/tests.rs b/egui_demo_lib/src/apps/demo/tests.rs index 3547f88e..afe48e70 100644 --- a/egui_demo_lib/src/apps/demo/tests.rs +++ b/egui_demo_lib/src/apps/demo/tests.rs @@ -52,7 +52,7 @@ impl super::View for IdTest { ui.label("\ Widgets that store state require unique and persisting identifiers so we can track their state between frames.\n\ - For instance, collapsable headers needs to store wether or not they are open. \ + For instance, collapsable headers needs to store whether or not they are open. \ Their Id:s are derived from their names. \ If you fail to give them unique names then clicking one will open both. \ To help you debug this, an error message is printed on screen:"); diff --git a/epi/src/lib.rs b/epi/src/lib.rs index 1183cc06..f66b8fcf 100644 --- a/epi/src/lib.rs +++ b/epi/src/lib.rs @@ -181,13 +181,13 @@ pub trait App { egui::Color32::from_rgba_unmultiplied(12, 12, 12, 180).into() } - /// Controls wether or not the native window position and size will be + /// Controls whether or not the native window position and size will be /// persisted (only if the "persistence" feature is enabled). fn persist_native_window(&self) -> bool { true } - /// Controls wether or not the egui memory (window positions etc) will be + /// Controls whether or not the egui memory (window positions etc) will be /// persisted (only if the "persistence" feature is enabled). fn persist_egui_memory(&self) -> bool { true