diff options
author | 2024-01-31 21:58:21 +0100 | |
---|---|---|
committer | 2024-01-31 21:58:21 +0100 | |
commit | 55791e45ebac908c59609641649e0f596b698303 (patch) | |
tree | 7807212737090c94550564805eb64c803cb67157 /widget | |
parent | 468f6a461a6bed9b4aaa905005559f04f16755ef (diff) | |
download | iced-55791e45ebac908c59609641649e0f596b698303.tar.gz iced-55791e45ebac908c59609641649e0f596b698303.tar.bz2 iced-55791e45ebac908c59609641649e0f596b698303.zip |
Fix documentation of `default` method for `slider`
Diffstat (limited to 'widget')
-rw-r--r-- | widget/src/slider.rs | 3 | ||||
-rw-r--r-- | widget/src/vertical_slider.rs | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/widget/src/slider.rs b/widget/src/slider.rs index a372f8e7..65bc1772 100644 --- a/widget/src/slider.rs +++ b/widget/src/slider.rs @@ -109,7 +109,8 @@ where } /// Sets the optional default value for the [`Slider`]. - /// If set, [`Slider`] will reset to this value when doubled-clicked, ctrl-clicked, or command-clicked. + /// + /// If set, the [`Slider`] will reset to this value when ctrl-clicked or command-clicked. pub fn default(mut self, default: impl Into<T>) -> Self { self.default = Some(default.into()); self diff --git a/widget/src/vertical_slider.rs b/widget/src/vertical_slider.rs index 06c27752..8f7c88da 100644 --- a/widget/src/vertical_slider.rs +++ b/widget/src/vertical_slider.rs @@ -106,7 +106,8 @@ where } /// Sets the optional default value for the [`VerticalSlider`]. - /// If set, [`VerticalSlider`] will reset to this value when doubled-clicked, ctrl-clicked, or command-clicked. + /// + /// If set, the [`VerticalSlider`] will reset to this value when ctrl-clicked or command-clicked. pub fn default(mut self, default: impl Into<T>) -> Self { self.default = Some(default.into()); self |