Fix documentation of default method for slider

This commit is contained in:
Héctor Ramón Jiménez 2024-01-31 21:58:21 +01:00
parent 468f6a461a
commit 55791e45eb
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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