We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1c685b commit 6f778c2Copy full SHA for 6f778c2
Sources/Basic/SortedArray.swift
@@ -69,7 +69,7 @@ public struct SortedArray<Element>: CustomStringConvertible {
69
70
/// Insert the given sequence, maintaining the sort order.
71
public mutating func insert<S: Sequence>(contentsOf newElements: S) where S.Iterator.Element == Element {
72
- var newElements: Array = newElements.sorted(by: areInIncreasingOrder)
+ let newElements = newElements.sorted(by: areInIncreasingOrder)
73
guard !newElements.isEmpty else {
74
return
75
}
0 commit comments