Skip to content

Commit 89e48ff

Browse files
committed
stdlib: change a var to a let to squash a warning
1 parent 5385db2 commit 89e48ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/ContiguousArrayBuffer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ internal func _copyCollectionToContiguousArray<
642642
_uninitializedCount: count,
643643
minimumCapacity: 0)
644644

645-
var p = UnsafeMutableBufferPointer(start: result.firstElementAddress, count: count)
645+
let p = UnsafeMutableBufferPointer(start: result.firstElementAddress, count: count)
646646
var (itr, end) = source._copyContents(initializing: p)
647647

648648
_debugPrecondition(itr.next() == nil,

0 commit comments

Comments
 (0)