diff options
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()); |
