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 {
138
138
139
139
/// Puts the buffer in an immutable state.
140
140
///
141
- /// - Precondition: The buffer must be mutable.
141
+ /// - Precondition: The buffer must be mutable or the empty array singleton .
142
142
///
143
143
/// - Warning: After a call to `endCOWMutation` the buffer must not be mutated
144
144
/// 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 {
697
697
698
698
/// Puts the buffer in an immutable state.
699
699
///
700
- /// - Precondition: The buffer must be mutable.
700
+ /// - Precondition: The buffer must be mutable or the empty array singleton .
701
701
///
702
702
/// - Warning: After a call to `endCOWMutation` the buffer must not be mutated
703
703
/// until the next call of `beginCOWMutation`.
Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ internal struct _SliceBuffer<Element>
329
329
330
330
/// Puts the buffer in an immutable state.
331
331
///
332
- /// - Precondition: The buffer must be mutable.
332
+ /// - Precondition: The buffer must be mutable or the empty array singleton .
333
333
///
334
334
/// - Warning: After a call to `endCOWMutation` the buffer must not be mutated
335
335
/// until the next call of `beginCOWMutation`.
You can’t perform that action at this time.
0 commit comments