Skip to content

Commit

Permalink
Add a docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
bbatsov committed Nov 23, 2020
1 parent 24fd2ff commit 15e4aab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cider/nrepl/middleware/test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@
(filter #(= (:class %) (.getName (class f))))
(first)))

(defn- print-object [object]
(defn- print-object
"Print `object` using pprint or a custom print-method, if available."
[object]
(let [print-fn (if (= (get-method print-method (:type (meta object)))
(get-method print-method :default))
pp/pprint
Expand Down

0 comments on commit 15e4aab

Please sign in to comment.