mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-30 00:23:41 +00:00
stdlib: Fix long line in sort.rs
This commit is contained in:
parent
4c76bfdc1f
commit
b4465aca5a
@ -209,7 +209,8 @@ mod ivector {
|
||||
// Based on algorithm presented by Sedgewick and Bentley here:
|
||||
// http://www.cs.princeton.edu/~rs/talks/QuicksortIsOptimal.pdf
|
||||
// According to these slides this is the algorithm of choice for
|
||||
// 'randomly ordered keys, abstract compare' & 'small number of key values'
|
||||
// 'randomly ordered keys, abstract compare' & 'small number of key
|
||||
// values'
|
||||
fn qsort3[T](lteq[T] compare_func_lt, lteq[T] compare_func_eq,
|
||||
&T[mutable] arr, int left, int right) {
|
||||
if (right <= left) { ret; }
|
||||
|
Loading…
Reference in New Issue
Block a user