From e5eab73374880077971f3f22acbdd3d302877128 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 8 Mar 2023 10:54:04 +0100 Subject: Streamline field names --- library/src/layout/enum.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'library/src/layout/enum.rs') diff --git a/library/src/layout/enum.rs b/library/src/layout/enum.rs index edc954d0..853a7a67 100644 --- a/library/src/layout/enum.rs +++ b/library/src/layout/enum.rs @@ -77,7 +77,7 @@ pub struct EnumNode { /// ) [+ #phase] /// ``` #[variadic] - pub items: Vec, + pub children: Vec, /// If this is `{false}`, the items are spaced apart with /// [enum spacing]($func/enum.spacing). If it is `{true}`, they use normal @@ -203,7 +203,7 @@ impl Layout for EnumNode { let mut parents = styles.get(Self::PARENTS); let full = styles.get(Self::FULL); - for item in self.items() { + for item in self.children() { number = item.number().unwrap_or(number); let resolved = if full { -- cgit v1.2.3