aboutsummaryrefslogtreecommitdiff
path: root/go/src/printer/printer.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/src/printer/printer.go')
-rw-r--r--go/src/printer/printer.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/go/src/printer/printer.go b/go/src/printer/printer.go
index 5050c5a..887c749 100644
--- a/go/src/printer/printer.go
+++ b/go/src/printer/printer.go
@@ -49,6 +49,8 @@ func Pr_str(obj types.MalType, print_readably bool) string {
return "(fn* " +
Pr_str(tobj.Params, true) + " " +
Pr_str(tobj.Exp, true) + ")"
+ case func([]types.MalType)(types.MalType, error):
+ return fmt.Sprintf("<function %v>", obj)
default:
return fmt.Sprintf("%v", obj)
}