Skip to content

Commit c9dc922

Browse files
committed
Tweak more pprint related documentation
1 parent 26b4758 commit c9dc922

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cider/nrepl.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@
200200
"format-edn"
201201
{:doc "Reformats the given EDN data, returning the result as a string."
202202
:requires {"edn" "The data to format."}
203-
:optional {"print-right-margin" "The maximum column width of the formatted result."
203+
:optional {"print-options" "A map of params for the print function."
204204
"pprint-fn" "Fully qualified name of the print function to be used."}
205205
:returns {"formatted-edn" "The formatted data."}}}})
206206

test/clj/cider/nrepl/middleware/format_test.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
(is (.startsWith err "clojure.lang.ExceptionInfo: Unmatched delimiter"))
126126
(is (:pp-stacktrace response))))
127127

128-
(testing "format-edn respects the :print-right-margin slot"
128+
(testing "format-edn respects the :right-margin print config"
129129
(let [wide-edn-sample "[1 2 3 4 5 6 7 8 9 0]"
130130
normal-reply (session/message {:op "format-edn" :edn wide-edn-sample})
131131
narrow-margin-reply (session/message {:op "format-edn"

0 commit comments

Comments
 (0)