From 9d69b186a83b2fad5172edcfef64fdeb1bba8d5f Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Fri, 11 Oct 2019 15:03:37 +0200 Subject: [PATCH] Fix misplaced docstring (found with clj-kondo). --- src/cheshire/core.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cheshire/core.clj b/src/cheshire/core.clj index 2aa211ba..8885c7b3 100644 --- a/src/cheshire/core.clj +++ b/src/cheshire/core.clj @@ -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]