summaryrefslogtreecommitdiffstats
path: root/core/src/widget
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/widget')
-rw-r--r--core/src/widget/text.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/widget/text.rs b/core/src/widget/text.rs
index e151476d..a220127c 100644
--- a/core/src/widget/text.rs
+++ b/core/src/widget/text.rs
@@ -83,7 +83,7 @@ where
self
}
- /// Sets the [`Color`] of the [`Text`].
+ /// Sets the [`Color`] of the [`Text`], if `Some`.
pub fn color_maybe(mut self, color: Option<impl Into<Color>>) -> Self {
self.style = Style::Colored(color.map(Into::into));
self