From 128c2771dc1b321c828425167414651b8efaffeb Mon Sep 17 00:00:00 2001 From: Moritz Gmeiner Date: Mon, 2 Sep 2024 00:29:53 +0200 Subject: [PATCH] changed Display for Expr::function --- frontend/src/parser/expr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/parser/expr.rs b/frontend/src/parser/expr.rs index b8be8e4..c5ea76b 100644 --- a/frontend/src/parser/expr.rs +++ b/frontend/src/parser/expr.rs @@ -231,7 +231,7 @@ impl Display for Expr { write!( f, - "(fun [{closure_fmt}] {name} ({}) {body})", + "(fun {name} [{closure_fmt}] ({}) {body})", param_names.join(", ") ) } else {