diff options
| author | Joel Martin <github@martintribe.org> | 2014-10-06 22:27:28 -0500 |
|---|---|---|
| committer | Joel Martin <github@martintribe.org> | 2014-10-06 22:27:28 -0500 |
| commit | ad95503cea8ca85e9188effa87681275283157bf (patch) | |
| tree | f4e5919aeb2351f2ceb60fee4ab988324bfb5dd1 /go/src/printer | |
| parent | 17e1c5f9f4006399398e8bb7e219a79962ebf3f0 (diff) | |
| download | mal-ad95503cea8ca85e9188effa87681275283157bf.tar.gz mal-ad95503cea8ca85e9188effa87681275283157bf.zip | |
go: add step6_file
Diffstat (limited to 'go/src/printer')
| -rw-r--r-- | go/src/printer/printer.go | 2 |
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) } |
