diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-03-08 10:54:04 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-03-08 11:02:27 +0100 |
| commit | e5eab73374880077971f3f22acbdd3d302877128 (patch) | |
| tree | 07aa926b27032d6bcd82486d664dfd4161ccbd3e /library/src/layout/list.rs | |
| parent | 1b2b53ecb91a9bd7fb3493e471ae03cd142a7c03 (diff) | |
Streamline field names
Diffstat (limited to 'library/src/layout/list.rs')
| -rw-r--r-- | library/src/layout/list.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/src/layout/list.rs b/library/src/layout/list.rs index 69d2e717..5ba6b9b0 100644 --- a/library/src/layout/list.rs +++ b/library/src/layout/list.rs @@ -49,7 +49,7 @@ pub struct ListNode { /// ] /// ``` #[variadic] - pub items: Vec<ListItem>, + pub children: Vec<ListItem>, /// If this is `{false}`, the items are spaced apart with [list /// spacing]($func/list.spacing). If it is `{true}`, they use normal @@ -141,7 +141,7 @@ impl Layout for ListNode { let marker = styles.get(Self::MARKER).resolve(vt.world(), depth)?; let mut cells = vec![]; - for item in self.items() { + for item in self.children() { cells.push(Content::empty()); cells.push(marker.clone()); cells.push(Content::empty()); |
