diff options
Diffstat (limited to 'src/library/hide.rs')
| -rw-r--r-- | src/library/hide.rs | 6 |
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")?))) } } |
