Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Convert arg to a string before calling write (and document options arg)

Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
  • Loading branch information...
commit a1eff35124b923ef8539a35e7a292813ba54a0e0 1 parent a642708
@tomfaulhaber tomfaulhaber authored stuarthalloway committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/clj/clojure/core.clj
View
4 src/clj/clojure/core.clj
@@ -5367,11 +5367,11 @@
(defn spit
"Opposite of slurp. Opens f with writer, writes content, then
- closes f."
+ closes f. Options passed to clojure.java.io/writer."
{:added "1.2"}
[f content & options]
(with-open [#^java.io.Writer w (apply jio/writer f options)]
- (.write w content)))
+ (.write w (str content))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; futures (needs proxy);;;;;;;;;;;;;;;;;;
(defn future-call
Please sign in to comment.
Something went wrong with that request. Please try again.