Skip to content

Commit 057033e

Browse files
authored
Fix typos in egui docstrings (#4869)
<!-- Please read the "Making a PR" section of [`CONTRIBUTING.md`](https://github.com/emilk/egui/blob/master/CONTRIBUTING.md) before opening a Pull Request! * Keep your PR:s small and focused. * The PR title is what ends up in the changelog, so make it descriptive! * If applicable, add a screenshot or gif. * If it is a non-trivial addition, consider adding a demo for it to `egui_demo_lib`, or a new example. * Do NOT open PR:s from your `master` branch, as that makes it hard for maintainers to test and add commits to your PR. * Remember to run `cargo fmt` and `cargo clippy`. * Open the PR as a draft until you have self-reviewed it and run `./scripts/check.sh`. * When you have addressed a PR comment, mark it as resolved. Please be patient! I will review your PR, but my time is limited! --> * [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).
1 parent 378df03 commit 057033e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/egui/src/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1668,7 +1668,7 @@ impl Context {
16681668
/// Global zoom factor of the UI.
16691669
///
16701670
/// This is used to calculate the `pixels_per_point`
1671-
/// for the UI as `pixels_per_point = zoom_fator * native_pixels_per_point`.
1671+
/// for the UI as `pixels_per_point = zoom_factor * native_pixels_per_point`.
16721672
///
16731673
/// The default is 1.0.
16741674
/// Make larger to make everything larger.

crates/egui/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@
270270
//!
271271
//! ## Widget interaction
272272
//! Each widget has a [`Sense`], which defines whether or not the widget
273-
//! is sensitive to clickicking and/or drags.
273+
//! is sensitive to clicking and/or drags.
274274
//!
275275
//! For instance, a [`Button`] only has a [`Sense::click`] (by default).
276276
//! This means if you drag a button it will not respond with [`Response::dragged`].

0 commit comments

Comments
 (0)