summaryrefslogtreecommitdiff
path: root/src/func.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-07-29 18:09:51 +0200
committerLaurenz <laurmaedje@gmail.com>2020-07-29 18:09:51 +0200
commitbbcdeb128cce04cd95714b7bc7af5a23a7e38bd2 (patch)
treee0a1620d335982669cd7671cbd71df46d100e9ea /src/func.rs
parentf34ba3dcda182d9b9c14cc94fdb48810bf18bef0 (diff)
Move, rename and switch some things (boring) 🚚
- Problems -> Diagnostics - Position -> Pos - offset_spans -> Offset trait - Size -> Length (and some more size types renamed) - Paper into its own module - scope::Parser -> parsing::CallParser - Create `Decorations` alias - Remove lots of double newlines - Switch from f32 to f64
Diffstat (limited to 'src/func.rs')
-rw-r--r--src/func.rs4
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 } }