Skip to content

Commit

Permalink
Updated the docstring on slurp to indicate it accepts an arbitrary cl…
Browse files Browse the repository at this point in the history
…ojure.java.io/reader

Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
  • Loading branch information
Alex Redington authored and stuarthalloway committed Nov 30, 2010
1 parent 40da626 commit 8bb9789
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clj/clojure/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -5798,8 +5798,8 @@
opts))

(defn slurp
"Reads the file named by f using the encoding enc into a string
and returns it."
"Opens a reader on f and reads all its contents, returning a string.
See clojure.java.io/reader for a complete list of supported arguments."
{:added "1.0"}
([f & opts]
(let [opts (normalize-slurp-opts opts)
Expand Down

0 comments on commit 8bb9789

Please sign in to comment.