summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-06-27 12:05:36 +0200
committerLaurenz <laurmaedje@gmail.com>2021-06-27 12:05:36 +0200
commitf64c772b6d969fa3aa1a7391a3d8118b21430434 (patch)
tree4829cea375ccb5c7dc864052fa80a63b9dcb6fb1 /src/library
parent422b8e640f00977177a5a7250a3c56009eed10c4 (diff)
Fix capturing bug
Diffstat (limited to 'src/library')
-rw-r--r--src/library/layout.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/layout.rs b/src/library/layout.rs
index 27b2e743..08924bad 100644
--- a/src/library/layout.rs
+++ b/src/library/layout.rs
@@ -210,7 +210,7 @@ castable! {
AlignValue: "alignment",
}
-/// ´box`: Place content in a rectangular box.
+/// `box`: Place content in a rectangular box.
pub fn boxed(ctx: &mut EvalContext, args: &mut FuncArgs) -> Value {
let width = args.named(ctx, "width");
let height = args.named(ctx, "height");
@@ -221,7 +221,7 @@ pub fn boxed(ctx: &mut EvalContext, args: &mut FuncArgs) -> Value {
})
}
-/// block`: Place content in a block.
+/// `block`: Place content in a block.
pub fn block(ctx: &mut EvalContext, args: &mut FuncArgs) -> Value {
let body = args.eat(ctx).unwrap_or_default();
Value::template(move |ctx| {