aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/parse.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse.zig b/src/parse.zig
index d8b4d15..752eafb 100644
--- a/src/parse.zig
+++ b/src/parse.zig
@@ -179,7 +179,7 @@ pub const Expr = struct {
try writer.print(" else {}", .{fmt(@"else", source, indent)});
}
},
- .proc => |proc| try writer.print("proc() {}", .{fmt(proc.body, source, indent)}),
+ .proc => |proc| try writer.print("proc({s}) {}", .{ if (proc.param) |p| p.getIdent(source) else "", fmt(proc.body, source, indent) }),
.@"return" => |ret| try writer.print("return {}", .{fmt(ret.value, source, indent)}),
}
}