File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ extension _ArrayBuffer {
138138
139139 /// Puts the buffer in an immutable state.
140140 ///
141- /// - Precondition: The buffer must be mutable.
141+ /// - Precondition: The buffer must be mutable or the empty array singleton .
142142 ///
143143 /// - Warning: After a call to `endCOWMutation` the buffer must not be mutated
144144 /// until the next call of `beginCOWMutation`.
Original file line number Diff line number Diff line change @@ -697,7 +697,7 @@ internal struct _ContiguousArrayBuffer<Element>: _ArrayBufferProtocol {
697697
698698 /// Puts the buffer in an immutable state.
699699 ///
700- /// - Precondition: The buffer must be mutable.
700+ /// - Precondition: The buffer must be mutable or the empty array singleton .
701701 ///
702702 /// - Warning: After a call to `endCOWMutation` the buffer must not be mutated
703703 /// until the next call of `beginCOWMutation`.
Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ internal struct _SliceBuffer<Element>
329329
330330 /// Puts the buffer in an immutable state.
331331 ///
332- /// - Precondition: The buffer must be mutable.
332+ /// - Precondition: The buffer must be mutable or the empty array singleton .
333333 ///
334334 /// - Warning: After a call to `endCOWMutation` the buffer must not be mutated
335335 /// until the next call of `beginCOWMutation`.
You can’t perform that action at this time.
0 commit comments