diff --git a/egui/src/input_state.rs b/egui/src/input_state.rs index 9b1ab0d0..3480139a 100644 --- a/egui/src/input_state.rs +++ b/egui/src/input_state.rs @@ -33,7 +33,7 @@ pub struct InputState { /// Time since last frame, in seconds. /// /// This can be very unstable in reactive mode (when we don't paint each frame) - /// so it can be smart ot use e.g. `unstable_dt.min(1.0 / 30.0)`. + /// so it can be smart to use e.g. `unstable_dt.min(1.0 / 30.0)`. pub unstable_dt: f32, /// Used for animations to get instant feedback (avoid frame delay). diff --git a/egui/src/ui.rs b/egui/src/ui.rs index 7aee1c15..7a516131 100644 --- a/egui/src/ui.rs +++ b/egui/src/ui.rs @@ -532,7 +532,7 @@ impl Ui { /// /// ## How sizes are negotiated /// Each widget should have a *minimum desired size* and a *desired size*. - /// When asking for space, ask AT LEAST for you minimum, and don't ask for more than you need. + /// When asking for space, ask AT LEAST for your minimum, and don't ask for more than you need. /// If you want to fill the space, ask about `available().size()` and use that. /// /// You may get MORE space than you asked for, for instance @@ -554,7 +554,7 @@ impl Ui { /// Returns a `Rect` with exactly what you asked for. /// /// The response rect will be larger if this is part of a justified layout or similar. - /// This means that iof this is a narrow widget in a wide justified layout, then + /// This means that if this is a narrow widget in a wide justified layout, then /// the widget will react to interactions outside the returned `Rect`. pub fn allocate_exact_size(&mut self, desired_size: Vec2, sense: Sense) -> (Rect, Response) { let response = self.allocate_response(desired_size, sense); @@ -577,7 +577,7 @@ impl Ui { /// /// ## How sizes are negotiated /// Each widget should have a *minimum desired size* and a *desired size*. - /// When asking for space, ask AT LEAST for you minimum, and don't ask for more than you need. + /// When asking for space, ask AT LEAST for your minimum, and don't ask for more than you need. /// If you want to fill the space, ask about `available().size()` and use that. /// /// You may get MORE space than you asked for, for instance @@ -809,7 +809,7 @@ impl Ui { /// Shortcut for `add(Label::new(text))` /// - /// Se also [`Label`]. + /// See also [`Label`]. pub fn label(&mut self, label: impl Into