Skip to content

Commit

Permalink
Merge pull request #2668 from edwloef/master
Browse files Browse the repository at this point in the history
Fix docs of `Scrollable::with_direction` and `Scrollable::direction`
  • Loading branch information
hecrj authored Nov 13, 2024
2 parents a11fcf8 + ed2e223 commit 2a2e20b
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 @@ -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()
Expand Down

0 comments on commit 2a2e20b

Please sign in to comment.