summaryrefslogtreecommitdiffstats
path: root/src/widget/checkbox.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/widget/checkbox.rs')
-rw-r--r--src/widget/checkbox.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/widget/checkbox.rs b/src/widget/checkbox.rs
index 75add65c..b8a20d2c 100644
--- a/src/widget/checkbox.rs
+++ b/src/widget/checkbox.rs
@@ -8,7 +8,7 @@ use crate::{
Widget,
};
-/// A box that can be checked.
+/// A box that can be checked, with a generic text `Color`.
///
/// It implements [`Widget`] when the associated `Renderer` implements the
/// [`checkbox::Renderer`] trait.
@@ -80,9 +80,8 @@ impl<Color, Message> Checkbox<Color, Message> {
}
}
- /// Sets the [`Color`] of the label of the [`Checkbox`].
+ /// Sets the `Color` of the label of the [`Checkbox`].
///
- /// [`Color`]: ../../../../graphics/struct.Color.html
/// [`Checkbox`]: struct.Checkbox.html
pub fn label_color(mut self, color: Color) -> Self {
self.label_color = Some(color);
@@ -165,11 +164,11 @@ where
/// The renderer of a [`Checkbox`].
///
-/// Your [`core::Renderer`] will need to implement this trait before being
+/// Your [renderer] will need to implement this trait before being
/// able to use a [`Checkbox`] in your user interface.
///
/// [`Checkbox`]: struct.Checkbox.html
-/// [`core::Renderer`]: ../../core/trait.Renderer.html
+/// [renderer]: ../../renderer/index.html
pub trait Renderer {
/// Draws a [`Checkbox`].
///