Skip to content

Commit 9ac9110

Browse files
Cleanup tests
1 parent f921064 commit 9ac9110

File tree

2 files changed

+205
-210
lines changed

2 files changed

+205
-210
lines changed

examples/expression.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ fn expr(alloc: std.mem.Allocator) !p.TaggedParser(Value) {
7777
};
7878

7979
// brackets: Int <- (<exp>)
80-
const brackets = p.tuple(.{ p.char('('), p.lazy(Value, alloc, expr), p.char(')') })
80+
const brackets = p.tuple(.{ p.char('('), p.deferred(Value, alloc, expr), p.char(')') })
8181
.transform(Value, {}, fns.valueFromParens);
8282

8383
// we can't use Parsers.int to parse numbers here to avoid consumption of the '-' and '+'

0 commit comments

Comments
 (0)