From 11ede684ee2e3eee4b3586174b2d5008b58a86cf Mon Sep 17 00:00:00 2001 From: Stjepan Glavina Date: Tue, 17 Jan 2017 01:11:06 +0100 Subject: [PATCH] Fix: insertion_len -> max_insertion --- src/libcollections/slice.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcollections/slice.rs b/src/libcollections/slice.rs index 211394180e861..18e4a23fa8d67 100644 --- a/src/libcollections/slice.rs +++ b/src/libcollections/slice.rs @@ -1560,7 +1560,7 @@ fn merge_sort(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