From 55791e45ebac908c59609641649e0f596b698303 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 31 Jan 2024 21:58:21 +0100 Subject: Fix documentation of `default` method for `slider` --- widget/src/slider.rs | 3 ++- 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) -> 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) -> Self { self.default = Some(default.into()); self -- cgit