diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2022-06-13 20:57:35 +0200 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2022-06-13 20:57:35 +0200 |
| commit | ef17561468edad57f6a1d0fdeec20b8ee8f7c936 (patch) | |
| tree | c0b48d9670e294a9a9ec2b7e879eb06b6e09a9f4 | |
| parent | ca3569c57c838be037fa4fcc71bdcabb6e7d0c93 (diff) | |
Fix regression on odinfmt
| -rw-r--r-- | src/odin/printer/visit.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/odin/printer/visit.odin b/src/odin/printer/visit.odin index 7a4f1a0..0b56150 100644 --- a/src/odin/printer/visit.odin +++ b/src/odin/printer/visit.odin @@ -997,7 +997,7 @@ visit_expr :: proc(p: ^Printer, expr: ^ast.Expr, called_from: Expr_Called_Type = case ^Relative_Type: return cons_with_opl(visit_expr(p, v.tag), visit_expr(p, v.type)) case ^Slice_Expr: - document := visit_expr(p, v.expr) + document = visit_expr(p, v.expr) document = cons(document, text("[")) document = cons(document, visit_expr(p, v.low)) document = cons(document, text(v.interval.text)) |