From 1a70cb6a330990dc0ab373905d12458ef87afbad Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 12 Oct 2020 18:01:22 +0200 Subject: =?UTF-8?q?Naming=20and=20grammar=20=E2=9C=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/node.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/layout/node.rs') 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 -- cgit v1.2.3