Skip to content

Commit 7448846

Browse files
authored
Merge pull request kodecocodes#723 from jack3010/master
Update README.markdown
2 parents bcdd282 + 66db524 commit 7448846

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Quicksort/README.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ func partitionHoare<T: Comparable>(_ a: inout [T], low: Int, high: Int) -> Int {
287287
repeat { i += 1 } while a[i] < pivot
288288

289289
if i < j {
290-
swap(&a[i], &a[j])
290+
a.swapAt(i, j)
291291
} else {
292292
return j
293293
}

0 commit comments

Comments
 (0)