diff options
| author | 2024-11-11 13:04:37 +0100 | |
|---|---|---|
| committer | 2024-11-11 13:04:37 +0100 | |
| commit | ed2e223fe0f62540947945ea0aa56d0daf3e3f76 (patch) | |
| tree | 2c8cce24e153f4709d04f3d047a0dca6d2e57866 /widget | |
| parent | 42a2cb6d4f78343f43d6a68a28e5502d9426ed2c (diff) | |
| download | iced-ed2e223fe0f62540947945ea0aa56d0daf3e3f76.tar.gz iced-ed2e223fe0f62540947945ea0aa56d0daf3e3f76.tar.bz2 iced-ed2e223fe0f62540947945ea0aa56d0daf3e3f76.zip | |
Fix docs of `Scrollable::with_direction` and `Scrollable::direction`
Diffstat (limited to '')
| -rw-r--r-- | widget/src/scrollable.rs | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/widget/src/scrollable.rs b/widget/src/scrollable.rs index 528d63c1..24ff1c16 100644 --- a/widget/src/scrollable.rs +++ b/widget/src/scrollable.rs @@ -95,7 +95,7 @@ where          Self::with_direction(content, Direction::default())      } -    /// Creates a new vertical [`Scrollable`]. +    /// Creates a new [`Scrollable`] with the given [`Direction`].      pub fn with_direction(          content: impl Into<Element<'a, Message, Theme, Renderer>>,          direction: impl Into<Direction>, @@ -136,7 +136,7 @@ where          self      } -    /// Creates a new [`Scrollable`] with the given [`Direction`]. +    /// Sets the [`Direction`] of the [`Scrollable`].      pub fn direction(mut self, direction: impl Into<Direction>) -> Self {          self.direction = direction.into();          self.validate() | 
