summaryrefslogtreecommitdiff
path: root/src/library/pad.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/pad.rs
parent0a1916c1e4259aff1306b26c06d4edcf0f190a3b (diff)
Rename `Node` to `Template`
Diffstat (limited to 'src/library/pad.rs')
-rw-r--r--src/library/pad.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library/pad.rs b/src/library/pad.rs
index 8bfc6d17..af570659 100644
--- a/src/library/pad.rs
+++ b/src/library/pad.rs
@@ -2,7 +2,7 @@
use super::prelude::*;
-/// Pad content at the sides.
+/// Pad a node at the sides.
#[derive(Debug, Hash)]
pub struct PadNode {
/// The amount of padding.
@@ -13,7 +13,7 @@ pub struct PadNode {
#[class]
impl PadNode {
- fn construct(_: &mut EvalContext, args: &mut Args) -> TypResult<Node> {
+ fn construct(_: &mut EvalContext, args: &mut Args) -> TypResult<Template> {
let all = args.find();
let left = args.named("left")?;
let top = args.named("top")?;
@@ -27,7 +27,7 @@ impl PadNode {
bottom.or(all).unwrap_or_default(),
);
- Ok(Node::block(body.padded(padding)))
+ Ok(Template::block(body.padded(padding)))
}
}