Skip to content

Commit c284df5

Browse files
committed
Update README code to Swift 4
1 parent 0c2aa34 commit c284df5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Selection Sort/README.markdown

+1-1
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)