We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c2aa34 commit c284df5Copy full SHA for c284df5
Selection Sort/README.markdown
@@ -74,7 +74,7 @@ func selectionSort(_ array: [Int]) -> [Int] {
74
}
75
76
if x != lowest { // 5
77
- swap(&a[x], &a[lowest])
+ a.swapAt(x, lowest)
78
79
80
return a
0 commit comments