@@ -70,7 +70,7 @@ but we only have the following:
70
70
- ` func initialize<S: Sequence>(from source: S) -> (S.Iterator, Index) `
71
71
- ` func assign(repeating repeatedValue: Element) `
72
72
73
- Missing are methods to assign from a ` Sequence ` or a ` Collection ` ,
73
+ Missing are methods to update memory from a ` Sequence ` or a ` Collection ` ,
74
74
move elements from another ` UnsafeMutableBufferPointer ` ,
75
75
modify the initialization state of a range of memory for a particular index of the buffer,
76
76
or to deinitialize (at all).
@@ -147,10 +147,11 @@ they include no preconditions beyond having a valid `Collection` and valid buffe
147
147
with the understanding that if a user wishes stricter behaviour,
148
148
they can compose it from these functions.
149
149
150
- The above changes include a method to assign a single element.
150
+ The above changes include a method to update a single element.
151
151
Evidently that is a synonym for the ` subscript(_ i: Index) ` setter.
152
- We hope that documenting the assignment action specifically will help clarify the requirements of that action,
153
- which are evidently muddled when documented along with the subscript getter.
152
+ We hope that documenting the update action specifically will help clarify the requirements of that action which,
153
+ as experience shows, get muddled when documented along with the subscript getter.
154
+
154
155
Similarly, we propose adding to ` UnsafeMutablePointer ` and ` UnsafeMutableRawPointer ` :
155
156
``` swift
156
157
extension UnsafeMutablePointer {
0 commit comments