Skip to content

Commit af9b03e

Browse files
authored
Merge pull request kodecocodes#660 from emanleet/master
Update README code to Swift 4
2 parents 0c2aa34 + c284df5 commit af9b03e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Selection Sort/README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func selectionSort(_ array: [Int]) -> [Int] {
7474
}
7575

7676
if x != lowest { // 5
77-
swap(&a[x], &a[lowest])
77+
a.swapAt(x, lowest)
7878
}
7979
}
8080
return a

0 commit comments

Comments
 (0)