From 4e75f4313ef55ec7f6b336915baa350e1316d337 Mon Sep 17 00:00:00 2001 From: Brian Janssen Date: Tue, 5 Dec 2023 16:38:21 +0100 Subject: [PATCH] Fix typos in viewports docs (`then` vs `than`) (#3681) I looked through the new viewport docs and noticed these small typos. This PR fixes them. --- crates/egui/src/viewport.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/crates/egui/src/viewport.rs b/crates/egui/src/viewport.rs index f811f95e..3a9c60eb 100644 --- a/crates/egui/src/viewport.rs +++ b/crates/egui/src/viewport.rs @@ -439,7 +439,7 @@ impl ViewportBuilder { /// /// If this is not set, some platform-specific dimensions will be used. /// - /// Should be bigger then 0 + /// Should be bigger than 0 /// Look at winit for more details #[inline] pub fn with_inner_size(mut self, size: impl Into) -> Self { @@ -452,7 +452,7 @@ impl ViewportBuilder { /// If this is not set, the window will have no minimum dimensions (aside /// from reserved). /// - /// Should be bigger then 0 + /// Should be bigger than 0 /// Look at winit for more details #[inline] pub fn with_min_inner_size(mut self, size: impl Into) -> Self { @@ -465,7 +465,7 @@ impl ViewportBuilder { /// If this is not set, the window will have no maximum or will be set to /// the primary monitor's dimensions by the platform. /// - /// Should be bigger then 0 + /// Should be bigger than 0 /// Look at winit for more details #[inline] pub fn with_max_inner_size(mut self, size: impl Into) -> Self { @@ -854,16 +854,16 @@ pub enum ViewportCommand { /// Set the outer position of the viewport, i.e. moves the window. OuterPosition(Pos2), - /// Should be bigger then 0 + /// Should be bigger than 0 InnerSize(Vec2), - /// Should be bigger then 0 + /// Should be bigger than 0 MinInnerSize(Vec2), - /// Should be bigger then 0 + /// Should be bigger than 0 MaxInnerSize(Vec2), - /// Should be bigger then 0 + /// Should be bigger than 0 ResizeIncrements(Option), /// Begin resizing the viewport with the left mouse button until the button is released.