Skip to content

Commit

Permalink
Fix misplaced docstring (found with clj-kondo). (#153)
Browse files Browse the repository at this point in the history
Fix misplaced docstring (found with clj-kondo).
  • Loading branch information
dakrone authored Oct 14, 2019
2 parents beb7d19 + 9d69b18 commit 1976720
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cheshire/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,12 @@
(def ^:dynamic ^JsonGenerator *generator*)
(def ^:dynamic *opt-map*)

(defmacro with-writer [[writer opt-map] & body]
(defmacro with-writer
"Start writing for series objects using the same json generator.
Takes writer and options map as arguments.
Expects its body as sequence of write calls.
Returns a given writer."
[[writer opt-map] & body]
`(let [c-wr# ~writer]
(binding [*generator* (create-generator c-wr#)
*opt-map* ~opt-map]
Expand Down

0 comments on commit 1976720

Please sign in to comment.