summaryrefslogtreecommitdiffstats
path: root/native/src/widget/row.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-03-17 00:50:23 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-03-17 00:50:23 +0100
commita146e53eb0f9bf2714f7f2a4227fe445f4905ff1 (patch)
treede778d59ca8e03a80b2255d76c2da4bb0ffd194a /native/src/widget/row.rs
parentae123d8f14c14a2c393bcf00dc364844a32cc0c8 (diff)
downloadiced-a146e53eb0f9bf2714f7f2a4227fe445f4905ff1.tar.gz
iced-a146e53eb0f9bf2714f7f2a4227fe445f4905ff1.tar.bz2
iced-a146e53eb0f9bf2714f7f2a4227fe445f4905ff1.zip
Rename `new_with_children` to `with_children`
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,