Skip to content

Commit d3c7d2a

Browse files
mdznrxwu
andauthored
Consistent syntax
Co-authored-by: Xiaodi Wu <[email protected]>
1 parent 4a1ef1a commit d3c7d2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Algorithms/Partition.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ extension Sequence {
241241
public func partitioned(
242242
_ belongsInSecondCollection: (Element) throws -> Bool
243243
) rethrows -> ([Element], [Element]) {
244-
var lhs = Array<Element>()
245-
var rhs = Array<Element>()
244+
var lhs = [Element]()
245+
var rhs = [Element]()
246246

247247
for element in self {
248248
if try belongsInSecondCollection(element) {

0 commit comments

Comments
 (0)