diff options
author | 2024-11-13 18:20:20 +0100 | |
---|---|---|
committer | 2024-11-13 18:20:20 +0100 | |
commit | 2a2e20b0a35bcf4da9ac34ab2f664485c4e1dbe3 (patch) | |
tree | 05af0a24c534811ffe707bea3b415fbb566e95ed /widget/src/scrollable.rs | |
parent | a11fcf8f2dde551335c6f34788393fa2e8f8a362 (diff) | |
parent | ed2e223fe0f62540947945ea0aa56d0daf3e3f76 (diff) | |
download | iced-2a2e20b0a35bcf4da9ac34ab2f664485c4e1dbe3.tar.gz iced-2a2e20b0a35bcf4da9ac34ab2f664485c4e1dbe3.tar.bz2 iced-2a2e20b0a35bcf4da9ac34ab2f664485c4e1dbe3.zip |
Merge pull request #2668 from edwloef/master
Fix docs of `Scrollable::with_direction` and `Scrollable::direction`
Diffstat (limited to 'widget/src/scrollable.rs')
-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 a6a41d9f..716a7c8a 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>, @@ -137,7 +137,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() |