File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1164,24 +1164,24 @@ extension Sequence {
1164
1164
@inlinable
1165
1165
public __consuming func _copyContents(
1166
1166
initializing buffer: UnsafeMutableBufferPointer < Element >
1167
- ) -> ( Iterator , UnsafeMutableBufferPointer < Element > . Index ) {
1167
+ ) -> ( Iterator , UnsafeMutableBufferPointer < Element > . Index ) {
1168
1168
return _copySequenceContents ( initializing: buffer)
1169
1169
}
1170
1170
1171
1171
@_alwaysEmitIntoClient
1172
1172
internal __consuming func _copySequenceContents(
1173
1173
initializing buffer: UnsafeMutableBufferPointer < Element >
1174
- ) -> ( Iterator , UnsafeMutableBufferPointer < Element > . Index ) {
1174
+ ) -> ( Iterator , UnsafeMutableBufferPointer < Element > . Index ) {
1175
1175
var it = self . makeIterator ( )
1176
- guard var ptr = buffer. baseAddress else { return ( it, buffer. startIndex) }
1177
- for idx in buffer. startIndex ..< buffer . count {
1176
+ guard var ptr = buffer. baseAddress else { return ( it, buffer. startIndex) }
1177
+ for idx in buffer. indices {
1178
1178
guard let x = it. next ( ) else {
1179
1179
return ( it, idx)
1180
1180
}
1181
1181
ptr. initialize ( to: x)
1182
1182
ptr += 1
1183
1183
}
1184
- return ( it, buffer. endIndex)
1184
+ return ( it, buffer. endIndex)
1185
1185
}
1186
1186
1187
1187
@inlinable
You can’t perform that action at this time.
0 commit comments