Skip to content

Commit e930883

Browse files
committed
print-doc needs a newline, Node.js REPL gets an extra line, oh well
1 parent 4e74f55 commit e930883

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/clj/cljs/repl.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ itself (not its value) is returned. The reader macro #'x expands to (var x)."}})
895895
(defmacro doc
896896
"Prints documentation for a var or special form given its name"
897897
[name]
898-
`(println
898+
`(print
899899
(binding [cljs.core/*print-newline* true]
900900
(with-out-str
901901
~(if-let [special-name ('{& fn catch try finally try} name)]

src/cljs/cljs/repl.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@
3030
(do
3131
(when (:macro m)
3232
(println "Macro"))
33-
(print " " (:doc m)))))
33+
(println " " (:doc m)))))

0 commit comments

Comments
 (0)