mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
fix typo in QuickSort code (#1466)
Seems there were 1 too many closing round brackets when calling QuickSort.
This commit is contained in:
@@ -36,8 +36,8 @@ fn QuickSort[T:! Comparable & Movable](s: Slice(T)) {
|
||||
return;
|
||||
}
|
||||
let p: i64 = Partition(s);
|
||||
QuickSort(s[:p - 1]));
|
||||
QuickSort(s[p + 1:]));
|
||||
QuickSort(s[:p - 1]);
|
||||
QuickSort(s[p + 1:]);
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user