Clarify docs of Text::color_maybe
This commit is contained in:
parent
3e99f39a86
commit
8919f2593e
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ where
|
||||||
self
|
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 {
|
pub fn color_maybe(mut self, color: Option<impl Into<Color>>) -> Self {
|
||||||
self.style = Style::Colored(color.map(Into::into));
|
self.style = Style::Colored(color.map(Into::into));
|
||||||
self
|
self
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue