From d30d56af483d9aa723758833ec115bd3f8936c29 Mon Sep 17 00:00:00 2001 From: Caleb Foust Date: Sat, 17 Aug 2024 16:36:47 +0800 Subject: [PATCH] docs: pretty print default value --- cmd/docs/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/docs/main.go b/cmd/docs/main.go index 179fba86..040897a5 100644 --- a/cmd/docs/main.go +++ b/cmd/docs/main.go @@ -66,7 +66,7 @@ func getParams() (params []Param, err error) { err = vm.Execute(context.Background(), ` (handler (fn [param] (def {:name name :docstring doc :default default} param) - (register name doc (string default) (string (type default))) + (register name doc (string/format "%n" default) (string (type default))) )) `) if err != nil {