mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-05 12:21:52 -04:00
Fix typo in parser.odin
This commit is contained in:
1 parent
5d14189a18
commit
a83d9f59f6
1 file changed
+1
-1
@@ -2754,7 +2754,7 @@ parse_binary_expr :: proc(p: ^Parser, lhs: bool, prec_in: int) -> ^ast.Expr {
|
||||
} else if op.kind == .When {
|
||||
x := expr;
|
||||
cond := parse_expr(p, lhs);
|
||||
op2 := expect_token(p, .Else);
|
||||
else_tok := expect_token(p, .Else);
|
||||
y := parse_expr(p, lhs);
|
||||
te := ast.new(ast.Ternary_When_Expr, expr.pos, end_pos(p.prev_tok));
|
||||
te.x = x;
|
||||
|
||||
Reference in new issue
Block a user