Skip to content

Commit c914cc7

Browse files
committed
[se-0370] add element labels to a returned tuple
- this is technically source-breaking, but the risk seems to be very low.
1 parent 97aad63 commit c914cc7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

stdlib/public/core/UnsafeBufferPointer.swift.gyb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -671,8 +671,10 @@ extension Unsafe${Mutable}BufferPointer {
671671
/// - Returns: An iterator to any elements of `source` that didn't fit in the
672672
/// buffer, and an index to the next uninitialized element in the buffer.
673673
@inlinable // unsafe-performance
674-
public func initialize<S: Sequence>(from source: S) -> (S.Iterator, Index)
675-
where S.Element == Element {
674+
@_silgen_name("$sSr10initialize4from8IteratorQyd___Sitqd___t7ElementQyd__RszSTRd__lF")
675+
public func initialize<S: Sequence>(
676+
from source: S
677+
) -> (unwritten: S.Iterator, index: Index) where S.Element == Element {
676678
return source._copyContents(initializing: self)
677679
}
678680

0 commit comments

Comments
 (0)