Skip to content

Commit 11ede68

Browse files
Stjepan Glavinasteveklabnik
Stjepan Glavina
authored andcommitted
Fix: insertion_len -> max_insertion
1 parent c2b153b commit 11ede68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcollections/slice.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1560,7 +1560,7 @@ fn merge_sort<T, F>(v: &mut [T], mut compare: F)
15601560

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

0 commit comments

Comments
 (0)