From ed2e223fe0f62540947945ea0aa56d0daf3e3f76 Mon Sep 17 00:00:00 2001 From: edwloef Date: Mon, 11 Nov 2024 13:04:37 +0100 Subject: [PATCH] Fix docs of `Scrollable::with_direction` and `Scrollable::direction` --- widget/src/scrollable.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widget/src/scrollable.rs b/widget/src/scrollable.rs index 528d63c1da..24ff1c164f 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>, direction: impl Into, @@ -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) -> Self { self.direction = direction.into(); self.validate()