Skip to content

Commit

Permalink
Fix misplaced docstring (found with clj-kondo).
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude authored Oct 11, 2019
1 parent beb7d19 commit 9d69b18
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 9d69b18

Please sign in to comment.