From 500ba962d17853bdef7aed49b150dbe3f45692e9 Mon Sep 17 00:00:00 2001 From: rustrover Date: Sat, 9 Mar 2024 15:26:37 +0800 Subject: fix some comments Signed-off-by: rustrover --- core/src/background.rs | 2 +- core/src/widget/text.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'core/src') diff --git a/core/src/background.rs b/core/src/background.rs index eb4b5021..c8b7cbea 100644 --- a/core/src/background.rs +++ b/core/src/background.rs @@ -12,7 +12,7 @@ pub enum Background { } impl Background { - /// Scales the the alpha channel of the [`Background`] by the given + /// Scales the alpha channel of the [`Background`] by the given /// factor. pub fn scale_alpha(self, factor: f32) -> Self { match self { diff --git a/core/src/widget/text.rs b/core/src/widget/text.rs index a220127c..0305972b 100644 --- a/core/src/widget/text.rs +++ b/core/src/widget/text.rs @@ -330,7 +330,7 @@ where } } -/// The apperance of some text. +/// The appearance of some text. #[derive(Debug, Clone, Copy, Default)] pub struct Appearance { /// The [`Color`] of the text. -- cgit