Skip to content

Commit 0732c41

Browse files
committed
Added to the document about why it is 'unsafe'.
1 parent 678fb02 commit 0732c41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/scala/collection/immutable/ArraySeq.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ object ArraySeq extends StrictOptimizedClassTagSeqFactory[ArraySeq] { self =>
193193

194194
/**
195195
* Wrap an existing `Array` into an `ArraySeq` of the proper primitive specialization type
196-
* without copying.
196+
* without copying. Any changes to wrapped array will break the expected immutability.
197197
*
198198
* Note that an array containing boxed primitives can be wrapped in an `ArraySeq` without
199199
* copying. For example, `val a: Array[Any] = Array(1)` is an array of `Object` at runtime,

0 commit comments

Comments
 (0)