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.
This commit is contained in:
Brian Janssen 2023-12-05 16:38:21 +01:00 committed by GitHub
parent a4e389431d
commit 4e75f4313e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -439,7 +439,7 @@ impl ViewportBuilder {
/// ///
/// If this is not set, some platform-specific dimensions will be used. /// 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 /// Look at winit for more details
#[inline] #[inline]
pub fn with_inner_size(mut self, size: impl Into<Vec2>) -> Self { pub fn with_inner_size(mut self, size: impl Into<Vec2>) -> Self {
@ -452,7 +452,7 @@ impl ViewportBuilder {
/// If this is not set, the window will have no minimum dimensions (aside /// If this is not set, the window will have no minimum dimensions (aside
/// from reserved). /// from reserved).
/// ///
/// Should be bigger then 0 /// Should be bigger than 0
/// Look at winit for more details /// Look at winit for more details
#[inline] #[inline]
pub fn with_min_inner_size(mut self, size: impl Into<Vec2>) -> Self { pub fn with_min_inner_size(mut self, size: impl Into<Vec2>) -> Self {
@ -465,7 +465,7 @@ impl ViewportBuilder {
/// If this is not set, the window will have no maximum or will be set to /// If this is not set, the window will have no maximum or will be set to
/// the primary monitor's dimensions by the platform. /// the primary monitor's dimensions by the platform.
/// ///
/// Should be bigger then 0 /// Should be bigger than 0
/// Look at winit for more details /// Look at winit for more details
#[inline] #[inline]
pub fn with_max_inner_size(mut self, size: impl Into<Vec2>) -> Self { pub fn with_max_inner_size(mut self, size: impl Into<Vec2>) -> Self {
@ -854,16 +854,16 @@ pub enum ViewportCommand {
/// Set the outer position of the viewport, i.e. moves the window. /// Set the outer position of the viewport, i.e. moves the window.
OuterPosition(Pos2), OuterPosition(Pos2),
/// Should be bigger then 0 /// Should be bigger than 0
InnerSize(Vec2), InnerSize(Vec2),
/// Should be bigger then 0 /// Should be bigger than 0
MinInnerSize(Vec2), MinInnerSize(Vec2),
/// Should be bigger then 0 /// Should be bigger than 0
MaxInnerSize(Vec2), MaxInnerSize(Vec2),
/// Should be bigger then 0 /// Should be bigger than 0
ResizeIncrements(Option<Vec2>), ResizeIncrements(Option<Vec2>),
/// Begin resizing the viewport with the left mouse button until the button is released. /// Begin resizing the viewport with the left mouse button until the button is released.