diff options
Diffstat (limited to 'src/func.rs')
| -rw-r--r-- | src/func.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/func.rs b/src/func.rs index 215de60f..88d08d2d 100644 --- a/src/func.rs +++ b/src/func.rs @@ -53,16 +53,16 @@ pub trait ParseFunc { /// body: Option<SyntaxModel>, /// } /// -/// parse(header, body, ctx, errors, decos) { -/// let body = body!(opt: body, ctx, errors, decos); -/// let hidden = header.args.pos.get::<bool>(errors) -/// .or_missing(errors, header.name.span, "hidden") +/// parse(header, body, ctx, f) { +/// let body = body!(opt: body, ctx, f); +/// let hidden = header.args.pos.get::<bool>(&mut f.errors) +/// .or_missing(&mut f.errors, header.name.span, "hidden") /// .unwrap_or(false); /// /// HiderFunc { body: if hidden { None } else { body } } /// } /// -/// layout(self, ctx, errors) { +/// layout(self, ctx, f) { /// match &self.body { /// Some(model) => vec![LayoutSyntaxModel(model)], /// None => vec![], |
