Skip to content

Commit 264eb2b

Browse files
mfikesswannodette
authored andcommitted
CLJS-1270: Docstring for delay not printed by cljs.repl/doc
The order of the `doc-string?` and `[params*]` arguments to the `delay` `defmacro` are reversed.
1 parent 1404485 commit 264eb2b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/clojure/cljs/core.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1394,11 +1394,12 @@
13941394
[& body]
13951395
`(new cljs.core/LazySeq nil (fn [] ~@body) nil nil))
13961396

1397-
(defmacro delay [& body]
1397+
(defmacro delay
13981398
"Takes a body of expressions and yields a Delay object that will
13991399
invoke the body only the first time it is forced (with force or deref/@), and
14001400
will cache the result and return it on all subsequent force
14011401
calls."
1402+
[& body]
14021403
`(new cljs.core/Delay (fn [] ~@body) nil))
14031404

14041405
(defmacro with-redefs

0 commit comments

Comments
 (0)