mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-26 01:31:10 +00:00
fix typo in QuickSort code (#1466)
Seems there were 1 too many closing round brackets when calling QuickSort.
This commit is contained in:
1 parent
c20c6cb8bf
commit
e85282567a
1 file changed
+2
-2
@@ -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