Skip to content

Commit c57f285

Browse files
committed
[stdlib] add element labels to a returned tuple
- this is technically source-breaking, but the risk seems to be very low.
1 parent 3dcad8c commit c57f285

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

stdlib/public/core/UnsafeBufferPointer.swift.gyb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -671,8 +671,9 @@ 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+
public func initialize<S: Sequence>(
675+
from source: S
676+
) -> (unwritten: S.Iterator, index: Index) where S.Element == Element {
676677
return source._copyContents(initializing: self)
677678
}
678679

0 commit comments

Comments
 (0)