Skip to content

Commit

Permalink
docs: pretty print default value
Browse files Browse the repository at this point in the history
  • Loading branch information
cfoust committed Aug 17, 2024
1 parent 98f23ac commit d30d56a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/docs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d30d56a

Please sign in to comment.