summaryrefslogtreecommitdiff
path: root/src/library/hide.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/hide.rs
parent0a1916c1e4259aff1306b26c06d4edcf0f190a3b (diff)
Rename `Node` to `Template`
Diffstat (limited to 'src/library/hide.rs')
-rw-r--r--src/library/hide.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library/hide.rs b/src/library/hide.rs
index 5025fefb..cfef8f73 100644
--- a/src/library/hide.rs
+++ b/src/library/hide.rs
@@ -2,14 +2,14 @@
use super::prelude::*;
-/// A node that hides its child without affecting layout.
+/// Hide a node without affecting layout.
#[derive(Debug, Hash)]
pub struct HideNode(pub PackedNode);
#[class]
impl HideNode {
- fn construct(_: &mut EvalContext, args: &mut Args) -> TypResult<Node> {
- Ok(Node::inline(Self(args.expect("body")?)))
+ fn construct(_: &mut EvalContext, args: &mut Args) -> TypResult<Template> {
+ Ok(Template::inline(Self(args.expect("body")?)))
}
}