summaryrefslogtreecommitdiff
path: root/library/src/layout/terms.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-03-08 10:54:04 +0100
committerLaurenz <laurmaedje@gmail.com>2023-03-08 11:02:27 +0100
commite5eab73374880077971f3f22acbdd3d302877128 (patch)
tree07aa926b27032d6bcd82486d664dfd4161ccbd3e /library/src/layout/terms.rs
parent1b2b53ecb91a9bd7fb3493e471ae03cd142a7c03 (diff)
Streamline field names
Diffstat (limited to 'library/src/layout/terms.rs')
-rw-r--r--library/src/layout/terms.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/src/layout/terms.rs b/library/src/layout/terms.rs
index e8adfdda..2933ea20 100644
--- a/library/src/layout/terms.rs
+++ b/library/src/layout/terms.rs
@@ -36,7 +36,7 @@ pub struct TermsNode {
/// ) [/ #product: Born in #year.]
/// ```
#[variadic]
- pub items: Vec<TermItem>,
+ pub children: Vec<TermItem>,
/// If this is `{false}`, the items are spaced apart with [term list
/// spacing]($func/terms.spacing). If it is `{true}`, they use normal
@@ -101,12 +101,12 @@ impl Layout for TermsNode {
};
let mut cells = vec![];
- for item in self.items() {
+ for child in self.children() {
let body = Content::sequence(vec![
HNode::new((-body_indent).into()).pack(),
- (item.term() + TextNode::packed(':')).strong(),
+ (child.term() + TextNode::packed(':')).strong(),
SpaceNode::new().pack(),
- item.description(),
+ child.description(),
]);
cells.push(Content::empty());