summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-05-26 14:29:10 +0200
committerLaurenz <laurmaedje@gmail.com>2022-05-26 14:29:10 +0200
commit3e052e6e017eaf51b101fa87629e392c16c32ac2 (patch)
treebafe142ad3501b22be46401bd8e972d89d16d45e /src/library
parenta9869c212f7c1bc77a52e301ad014641b014e834 (diff)
All methods for groups
Diffstat (limited to 'src/library')
-rw-r--r--src/library/layout/locate.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/layout/locate.rs b/src/library/layout/locate.rs
index e94a48ba..74480b91 100644
--- a/src/library/layout/locate.rs
+++ b/src/library/layout/locate.rs
@@ -3,7 +3,7 @@ use crate::model::{Group, LocateNode};
/// Format content with access to its location on the page.
pub fn locate(_: &mut Machine, args: &mut Args) -> TypResult<Value> {
- let node = LocateNode::new(args.expect("recipe")?);
+ let node = LocateNode::single(args.expect("recipe")?);
Ok(Value::Content(Content::Locate(node)))
}