Skip to content

Commit 21b7929

Browse files
committed
Fix gclosure compiler warning on print. Refs clojure#57
1 parent 4b1a822 commit 21b7929

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/cljs/cljs/core.cljs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2425,11 +2425,12 @@ reduces them without incurring seq initialization"
24252425
[& objs]
24262426
(pr-with-opts objs (pr-opts)))
24272427

2428-
(defn print
2428+
(def ^{:doc
24292429
"Prints the object(s) using string-print.
2430-
print and println produce output for human consumption."
2431-
[& objs]
2432-
(pr-with-opts objs (assoc (pr-opts) :readably false)))
2430+
print and println produce output for human consumption."}
2431+
print
2432+
(fn cljs-core-print [& objs]
2433+
(pr-with-opts objs (assoc (pr-opts) :readably false))))
24332434

24342435
(defn println
24352436
"Same as print followed by (newline)"

0 commit comments

Comments
 (0)