mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
std.zig.Parse: Fix assertion (#16500)
The assert was copied from a few lines above without updating the target variable.
This commit is contained in:
parent
a03fee465b
commit
7dcbabef51
@ -3818,7 +3818,7 @@ fn parseIf(p: *Parse, comptime bodyParseFn: fn (p: *Parse) Error!Node.Index) !No
|
||||
});
|
||||
_ = try p.parsePayload();
|
||||
const else_expr = try bodyParseFn(p);
|
||||
assert(then_expr != 0);
|
||||
assert(else_expr != 0);
|
||||
|
||||
return p.addNode(.{
|
||||
.tag = .@"if",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user