Skip to content

Commit

Permalink
print-doc needs a newline, Node.js REPL gets an extra line, oh well
Browse files Browse the repository at this point in the history
  • Loading branch information
swannodette committed Mar 9, 2015
1 parent 4e74f55 commit e930883
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/clj/cljs/repl.clj
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ itself (not its value) is returned. The reader macro #'x expands to (var x)."}})
(defmacro doc
"Prints documentation for a var or special form given its name"
[name]
`(println
`(print
(binding [cljs.core/*print-newline* true]
(with-out-str
~(if-let [special-name ('{& fn catch try finally try} name)]
Expand Down
2 changes: 1 addition & 1 deletion src/cljs/cljs/repl.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@
(do
(when (:macro m)
(println "Macro"))
(print " " (:doc m)))))
(println " " (:doc m)))))

0 comments on commit e930883

Please sign in to comment.