]> git.lizzy.rs Git - rust.git/commitdiff
Fix: insertion_len -> max_insertion
authorStjepan Glavina <stjepang@gmail.com>
Tue, 17 Jan 2017 00:11:06 +0000 (01:11 +0100)
committerSteve Klabnik <steve@steveklabnik.com>
Wed, 25 Jan 2017 18:57:35 +0000 (13:57 -0500)
src/libcollections/slice.rs

index 211394180e86135c48e899b8264dbcd22a7abbc4..18e4a23fa8d67525a93840c8e95b8dda3ddabe64 100644 (file)
@@ -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