summaryrefslogtreecommitdiff
path: root/src/library/flow.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-02-02 16:02:23 +0100
committerLaurenz <laurmaedje@gmail.com>2022-02-02 16:02:23 +0100
commita7b403fd742941f6b163f06876aec96729db707f (patch)
treeb5062eddbcb814713b65f59d3f59dfe7e2bcaca8 /src/library/flow.rs
parent0a1916c1e4259aff1306b26c06d4edcf0f190a3b (diff)
Rename `Node` to `Template`
Diffstat (limited to 'src/library/flow.rs')
-rw-r--r--src/library/flow.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/flow.rs b/src/library/flow.rs
index 95426731..38f1b0e7 100644
--- a/src/library/flow.rs
+++ b/src/library/flow.rs
@@ -48,7 +48,7 @@ impl Debug for FlowChild {
match self {
Self::Break => f.pad("Break"),
Self::Skip => f.pad("Skip"),
- Self::Spacing(node) => node.fmt(f),
+ Self::Spacing(kind) => kind.fmt(f),
Self::Node(node) => node.fmt(f),
}
}
@@ -56,7 +56,7 @@ impl Debug for FlowChild {
/// Performs flow layout.
struct FlowLayouter<'a> {
- /// The flow node to layout.
+ /// The children of the flow.
children: &'a [Styled<FlowChild>],
/// The regions to layout children into.
regions: Regions,