Fix docs of Scrollable::with_direction and Scrollable::direction

This commit is contained in:
edwloef 2024-11-11 13:04:37 +01:00
parent 42a2cb6d4f
commit ed2e223fe0
No known key found for this signature in database

View file

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