Skip to content

Commit

Permalink
Fix: insertion_len -> max_insertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Stjepan Glavina authored and steveklabnik committed Jan 25, 2017
1 parent c2b153b commit 11ede68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcollections/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1560,7 +1560,7 @@ fn merge_sort<T, F>(v: &mut [T], mut compare: F)

// FIXME #12092: These numbers are platform-specific and need more extensive testing/tuning.
//
// If `v` has length up to `insertion_len`, simply switch to insertion sort because it is going
// If `v` has length up to `max_insertion`, simply switch to insertion sort because it is going
// to perform better than merge sort. For bigger types `T`, the threshold is smaller.
//
// Short runs are extended using insertion sort to span at least `min_run` elements, in order
Expand Down

0 comments on commit 11ede68

Please sign in to comment.