Skip to content

Commit

Permalink
Fix docs of Scrollable::with_direction and Scrollable::direction
Browse files Browse the repository at this point in the history
  • Loading branch information
edwloef committed Nov 11, 2024
1 parent 42a2cb6 commit ed2e223
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions widget/src/scrollable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit ed2e223

Please sign in to comment.