From 3e37e9dfc7a19267ab3b4b694df1e19eab1cda77 Mon Sep 17 00:00:00 2001 From: YgorSouza <43298013+YgorSouza@users.noreply.github.com> Date: Sat, 18 Nov 2023 17:13:03 +0100 Subject: [PATCH] Update hyperlink doc (#3561) Closes . --- crates/eframe/src/web/input.rs | 2 +- crates/egui/src/ui.rs | 2 +- crates/emath/src/range.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/eframe/src/web/input.rs b/crates/eframe/src/web/input.rs index a32070c8..33ea30b6 100644 --- a/crates/eframe/src/web/input.rs +++ b/crates/eframe/src/web/input.rs @@ -109,7 +109,7 @@ pub fn should_ignore_key(key: &str) -> bool { ) } -/// Web sends all all keys as strings, so it is up to us to figure out if it is +/// Web sends all keys as strings, so it is up to us to figure out if it is /// a real text input or the name of a key. pub fn translate_key(key: &str) -> Option { use egui::Key; diff --git a/crates/egui/src/ui.rs b/crates/egui/src/ui.rs index 1c0d2155..8474bcb0 100644 --- a/crates/egui/src/ui.rs +++ b/crates/egui/src/ui.rs @@ -1325,7 +1325,7 @@ impl Ui { Hyperlink::new(url).ui(self) } - /// Shortcut for `add(Hyperlink::new(url).text(label))`. + /// Shortcut for `add(Hyperlink::from_label_and_url(label, url))`. /// /// ``` /// # egui::__run_test_ui(|ui| { diff --git a/crates/emath/src/range.rs b/crates/emath/src/range.rs index 6de7b2a0..19740710 100644 --- a/crates/emath/src/range.rs +++ b/crates/emath/src/range.rs @@ -1,6 +1,6 @@ use std::ops::{RangeFrom, RangeFull, RangeInclusive, RangeToInclusive}; -/// Includive range of floats, i.e. `min..=max`, but more ergonomic than [`RangeInclusive`]. +/// Inclusive range of floats, i.e. `min..=max`, but more ergonomic than [`RangeInclusive`]. #[repr(C)] #[derive(Clone, Copy, Debug, PartialEq)] #[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]