summaryrefslogtreecommitdiffstats
path: root/native/src/widget/row.rs
diff options
context:
space:
mode:
Diffstat (limited to 'native/src/widget/row.rs')
-rw-r--r--native/src/widget/row.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/native/src/widget/row.rs b/native/src/widget/row.rs
index 3d803fa2..b71d6480 100644
--- a/native/src/widget/row.rs
+++ b/native/src/widget/row.rs
@@ -42,10 +42,12 @@ impl<'a, Message, Renderer> Row<'a, Message, Renderer> {
}
}
- /// Creates a [`Row`] with children.
+ /// Creates a [`Row`] with the given elements.
///
/// [`Row`]: struct.Row.html
- pub fn new_with_children(children: Vec<Element<'a, Message, Renderer>>) -> Self {
+ pub fn with_children(
+ children: Vec<Element<'a, Message, Renderer>>,
+ ) -> Self {
Row {
spacing: 0,
padding: 0,