Skip to content

Commit

Permalink
Fix documentation of default method for slider
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Jan 31, 2024
1 parent 468f6a4 commit 55791e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion widget/src/slider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion widget/src/vertical_slider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 55791e4

Please sign in to comment.