summaryrefslogtreecommitdiffstats
path: root/widget/src
diff options
context:
space:
mode:
Diffstat (limited to 'widget/src')
-rw-r--r--widget/src/scrollable.rs4
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()