Skip to content

Commit 6f778c2

Browse files
committed
[Basic] Use let instead of var
<rdar://problem/50217475>
1 parent a1c685b commit 6f778c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Basic/SortedArray.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public struct SortedArray<Element>: CustomStringConvertible {
6969

7070
/// Insert the given sequence, maintaining the sort order.
7171
public mutating func insert<S: Sequence>(contentsOf newElements: S) where S.Iterator.Element == Element {
72-
var newElements: Array = newElements.sorted(by: areInIncreasingOrder)
72+
let newElements = newElements.sorted(by: areInIncreasingOrder)
7373
guard !newElements.isEmpty else {
7474
return
7575
}

0 commit comments

Comments
 (0)