Skip to content

Commit 331fea6

Browse files
LeaveNhAmfikes
authored andcommitted
CLJS-3143: assoc docstring regarding growing vector
1 parent 402d47e commit 331fea6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/cljs/cljs/core.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1971,7 +1971,7 @@ reduces them without incurring seq initialization"
19711971
"assoc[iate]. When applied to a map, returns a new map of the
19721972
same (hashed/sorted) type, that contains the mapping of key(s) to
19731973
val(s). When applied to a vector, returns a new vector that
1974-
contains val at index."
1974+
contains val at index. Note - index must be <= (count vector)."
19751975
([coll k v]
19761976
(if-not (nil? coll)
19771977
(-assoc coll k v)

0 commit comments

Comments
 (0)