diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/src/widget/text.rs | 2 |
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 |