From 8919f2593e39f76b273513e959fa6d5ffb78fde2 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 8 Mar 2024 13:51:34 +0100 Subject: Clarify docs of `Text::color_maybe` --- core/src/widget/text.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/src/widget') 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>) -> Self { self.style = Style::Colored(color.map(Into::into)); self -- cgit