Skip to content

Commit

Permalink
update docstring for pprint to omit :indent as an option
Browse files Browse the repository at this point in the history
  • Loading branch information
puredanger committed Dec 2, 2023
1 parent 91f5660 commit d51234e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/clojure/clojure/data/json.clj
Original file line number Diff line number Diff line change
Expand Up @@ -739,8 +739,8 @@
:else (pprint-generic x options)))

(defn pprint
"Pretty-prints JSON representation of x to *out*. Options are the
same as for write except :value-fn, which is not supported."
"Pretty-prints JSON representation of x to *out*. Options are the same
as for write except :value-fn and :indent, which are not supported."
[x & {:as options}]
(let [opts (merge default-write-options options)]
(pprint/with-pprint-dispatch #(pprint-dispatch % opts)
Expand Down Expand Up @@ -811,4 +811,4 @@
:escape-unicode false
to turn off \\uXXXX escapes of Unicode characters."
[x & options]
(apply pprint x options))
(apply pprint x options))

0 comments on commit d51234e

Please sign in to comment.