Skip to content

Commit 89ec69f

Browse files
mfikesdnolen
authored andcommitted
CLJS-1552: doc for & should match fn
Currently `(doc &)` produces `(empty)` doc as if fn is a special form. This revision simply delegates to doc so that `(doc &)` is converted to `(doc fn)`. This results in the intended doc for the fn macro to be displayed.
1 parent d63ad27 commit 89ec69f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/clojure/cljs/repl.cljc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,7 @@ itself (not its value) is returned. The reader macro #'x expands to (var x)."}})
11541154
(binding [cljs.core/*print-newline* true]
11551155
(with-out-str
11561156
~(if-let [special-name ('{& fn catch try finally try} name)]
1157-
`(cljs.repl/print-doc (quote ~(special-doc special-name)))
1157+
`(doc ~special-name)
11581158
(cond
11591159
(special-doc-map name)
11601160
`(cljs.repl/print-doc (quote ~(special-doc name)))

0 commit comments

Comments
 (0)