diff options
Diffstat (limited to 'src/func.rs')
| -rw-r--r-- | src/func.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/func.rs b/src/func.rs index e948d049..af3cd091 100644 --- a/src/func.rs +++ b/src/func.rs @@ -52,8 +52,8 @@ pub trait ParseFunc { /// /// parse(header, body, state, f) { /// let body = body!(opt: body, state, f); -/// let hidden = header.args.pos.get::<bool>(&mut f.problems) -/// .or_missing(&mut f.problems, header.name.span, "hidden") +/// let hidden = header.args.pos.get::<bool>(&mut f.diagnostics) +/// .or_missing(&mut f.diagnostics, header.name.span, "hidden") /// .unwrap_or(false); /// /// HiderFunc { body: if hidden { None } else { body } } |
