diff options
author | 2024-03-08 13:51:34 +0100 | |
---|---|---|
committer | 2024-03-08 13:51:34 +0100 | |
commit | 8919f2593e39f76b273513e959fa6d5ffb78fde2 (patch) | |
tree | 1cbc8f289451c18a69415a304fe302454bb67adf /core | |
parent | 3e99f39a8680bb48d5c15b043c399a3337765ae5 (diff) | |
download | iced-8919f2593e39f76b273513e959fa6d5ffb78fde2.tar.gz iced-8919f2593e39f76b273513e959fa6d5ffb78fde2.tar.bz2 iced-8919f2593e39f76b273513e959fa6d5ffb78fde2.zip |
Clarify docs of `Text::color_maybe`
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 |