diff options
author | 2024-09-29 16:37:35 +0300 | |
---|---|---|
committer | 2024-09-29 16:37:35 +0300 | |
commit | 7a86900a45116994a4a175c8979550b28ec0dcfb (patch) | |
tree | 4318ba0219282b246606b37c2344ac4efb5323a3 /core/src | |
parent | afecc0f367aff12fa353c8158fac3098ffe40136 (diff) | |
download | iced-7a86900a45116994a4a175c8979550b28ec0dcfb.tar.gz iced-7a86900a45116994a4a175c8979550b28ec0dcfb.tar.bz2 iced-7a86900a45116994a4a175c8979550b28ec0dcfb.zip |
Fix various typos
Using https://github.com/crate-ci/typos
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/keyboard/key.rs | 2 | ||||
-rw-r--r-- | core/src/keyboard/modifiers.rs | 2 | ||||
-rw-r--r-- | core/src/text.rs | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/core/src/keyboard/key.rs b/core/src/keyboard/key.rs index 479d999b..69a91902 100644 --- a/core/src/keyboard/key.rs +++ b/core/src/keyboard/key.rs @@ -203,7 +203,7 @@ pub enum Named { Standby, /// The WakeUp key. (`KEYCODE_WAKEUP`) WakeUp, - /// Initate the multi-candidate mode. + /// Initiate the multi-candidate mode. AllCandidates, Alphanumeric, /// Initiate the Code Input mode to allow characters to be entered by diff --git a/core/src/keyboard/modifiers.rs b/core/src/keyboard/modifiers.rs index edbf6d38..00b31882 100644 --- a/core/src/keyboard/modifiers.rs +++ b/core/src/keyboard/modifiers.rs @@ -33,7 +33,7 @@ impl Modifiers { /// This is normally the main modifier to be used for hotkeys. /// /// On macOS, this is equivalent to `Self::LOGO`. - /// Ohterwise, this is equivalent to `Self::CTRL`. + /// Otherwise, this is equivalent to `Self::CTRL`. pub const COMMAND: Self = if cfg!(target_os = "macos") { Self::LOGO } else { diff --git a/core/src/text.rs b/core/src/text.rs index d7b7fee4..a9e3dce5 100644 --- a/core/src/text.rs +++ b/core/src/text.rs @@ -411,13 +411,13 @@ impl<'a, Link, Font> Span<'a, Link, Font> { self } - /// Sets whether the [`Span`] shoud be underlined or not. + /// Sets whether the [`Span`] should be underlined or not. pub fn underline(mut self, underline: bool) -> Self { self.underline = underline; self } - /// Sets whether the [`Span`] shoud be struck through or not. + /// Sets whether the [`Span`] should be struck through or not. pub fn strikethrough(mut self, strikethrough: bool) -> Self { self.strikethrough = strikethrough; self |