Skip to content

Commit 1db8679

Browse files
dek5mfikes
authored andcommitted
CLJS-2937: docstring for to-array
1 parent c61a235 commit 1db8679

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/cljs/cljs/core.cljs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3611,10 +3611,10 @@ reduces them without incurring seq initialization"
36113611
;;;;;;;;;;;;;;;;
36123612

36133613
(defn to-array
3614-
"Naive impl of to-array as a start."
3615-
[s]
3614+
"Returns an array containing the contents of coll."
3615+
[coll]
36163616
(let [ary (array)]
3617-
(loop [s (seq s)]
3617+
(loop [s (seq coll)]
36183618
(if-not (nil? s)
36193619
(do (. ary push (first s))
36203620
(recur (next s)))

0 commit comments

Comments
 (0)