From 057033ef340120ebdc86239a677fd3748634c2a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?On=C3=A8?= <43485962+c-git@users.noreply.github.com> Date: Tue, 30 Jul 2024 15:00:47 -0400 Subject: [PATCH] Fix typos in egui docstrings (#4869) * [x] I have followed the instructions in the PR template (less the self-review using the script as it's only a single word change). --- crates/egui/src/context.rs | 2 +- crates/egui/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/egui/src/context.rs b/crates/egui/src/context.rs index 5ddadf78321..224ce68f40a 100644 --- a/crates/egui/src/context.rs +++ b/crates/egui/src/context.rs @@ -1668,7 +1668,7 @@ impl Context { /// Global zoom factor of the UI. /// /// This is used to calculate the `pixels_per_point` - /// for the UI as `pixels_per_point = zoom_fator * native_pixels_per_point`. + /// for the UI as `pixels_per_point = zoom_factor * native_pixels_per_point`. /// /// The default is 1.0. /// Make larger to make everything larger. diff --git a/crates/egui/src/lib.rs b/crates/egui/src/lib.rs index 89e0ffab5ff..b4571c88a38 100644 --- a/crates/egui/src/lib.rs +++ b/crates/egui/src/lib.rs @@ -270,7 +270,7 @@ //! //! ## Widget interaction //! Each widget has a [`Sense`], which defines whether or not the widget -//! is sensitive to clickicking and/or drags. +//! is sensitive to clicking and/or drags. //! //! For instance, a [`Button`] only has a [`Sense::click`] (by default). //! This means if you drag a button it will not respond with [`Response::dragged`].