summaryrefslogtreecommitdiff
path: root/src/layout/node.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-10-12 18:01:22 +0200
committerLaurenz <laurmaedje@gmail.com>2020-10-12 18:01:22 +0200
commit1a70cb6a330990dc0ab373905d12458ef87afbad (patch)
tree5d82f7124734e146c2d00ce3661294ebe9d91fb4 /src/layout/node.rs
parent5243878d810d4817c81acc9ae346d46757fcf602 (diff)
Naming and grammar ✔
Diffstat (limited to 'src/layout/node.rs')
-rw-r--r--src/layout/node.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/layout/node.rs b/src/layout/node.rs
index aa4b990f..6b264eb0 100644
--- a/src/layout/node.rs
+++ b/src/layout/node.rs
@@ -29,7 +29,7 @@ impl Layout for LayoutNode {
match self {
Self::Spacing(spacing) => spacing.layout(ctx, areas),
Self::Text(text) => text.layout(ctx, areas),
- Self::Dyn(boxed) => boxed.layout(ctx, areas),
+ Self::Dyn(dynamic) => dynamic.layout(ctx, areas),
}
}
}
@@ -39,16 +39,16 @@ impl Debug for LayoutNode {
match self {
Self::Spacing(spacing) => spacing.fmt(f),
Self::Text(text) => text.fmt(f),
- Self::Dyn(boxed) => boxed.fmt(f),
+ Self::Dyn(dynamic) => dynamic.fmt(f),
}
}
}
-/// A wrapper around a boxed dynamic node.
+/// A wrapper around a boxed node trait object.
///
/// _Note_: This is needed because the compiler can't `derive(PartialEq)` for
-/// [`LayoutNode`] when directly putting the boxed node in there, see
-/// the [Rust Issue].
+/// [`LayoutNode`] when directly putting the `Box` in there, see the
+/// [Rust Issue].
///
/// [`LayoutNode`]: enum.LayoutNode.html
/// [Rust Issue]: https://github.com/rust-lang/rust/issues/31740