Skip to content

Commit

Permalink
Convert arg to a string before calling write (and document options arg)
Browse files Browse the repository at this point in the history
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
  • Loading branch information
tomfaulhaber authored and stuarthalloway committed Jun 23, 2010
1 parent a642708 commit a1eff35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clj/clojure/core.clj
Expand Up @@ -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
Expand Down

0 comments on commit a1eff35

Please sign in to comment.