summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-09-23 20:11:43 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-09-23 20:11:43 +0200
commitbe5964db83f5e33cd80b93274d9f26117bbbe128 (patch)
treecd0d4454e8939238bad47f63f35c4f41037537ae
parentb8401c61a1a9966adf83e520cb2bb2758366459a (diff)
downloadiced-be5964db83f5e33cd80b93274d9f26117bbbe128.tar.gz
iced-be5964db83f5e33cd80b93274d9f26117bbbe128.tar.bz2
iced-be5964db83f5e33cd80b93274d9f26117bbbe128.zip
Write documentation for `color!` macro
-rw-r--r--core/src/color.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/color.rs b/core/src/color.rs
index 73104fc9..212c1214 100644
--- a/core/src/color.rs
+++ b/core/src/color.rs
@@ -134,6 +134,8 @@ impl From<[f32; 4]> for Color {
}
}
+/// Creates a [`Color`] with shorter and cleaner syntax.
+///
/// # Examples
///
/// ```