Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 86878b9

Browse files
committedMay 16, 2024
Fix linkchecker doc errors
Also includes small doc fixes.
1 parent 1bf7a30 commit 86878b9

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed
 

‎alloc/src/slice.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ impl<T> [T] {
193193
/// The current implementation is based on [driftsort] by Orson Peters and Lukas Bergdoll, which
194194
/// combines the fast average case of quicksort with the fast worst case and partial run
195195
/// detection of mergesort, achieving linear time on fully sorted and reversed inputs. On inputs
196-
/// with k distinct elements, the expected time to sort the data is *O(*n* log(*k*))*.
196+
/// with k distinct elements, the expected time to sort the data is *O(*n* \* log(*k*))*.
197197
///
198198
/// The auxiliary memory allocation behavior depends on the input length. Short slices are
199199
/// handled without allocation, medium sized slices allocate `self.len()` and beyond that it
@@ -252,7 +252,7 @@ impl<T> [T] {
252252
/// The current implementation is based on [driftsort] by Orson Peters and Lukas Bergdoll, which
253253
/// combines the fast average case of quicksort with the fast worst case and partial run
254254
/// detection of mergesort, achieving linear time on fully sorted and reversed inputs. On inputs
255-
/// with k distinct elements, the expected time to sort the data is *O(*n* log(*k*))*.
255+
/// with k distinct elements, the expected time to sort the data is *O(*n* \* log(*k*))*.
256256
///
257257
/// The auxiliary memory allocation behavior depends on the input length. Short slices are
258258
/// handled without allocation, medium sized slices allocate `self.len()` and beyond that it
@@ -298,7 +298,7 @@ impl<T> [T] {
298298
/// The current implementation is based on [driftsort] by Orson Peters and Lukas Bergdoll, which
299299
/// combines the fast average case of quicksort with the fast worst case and partial run
300300
/// detection of mergesort, achieving linear time on fully sorted and reversed inputs. On inputs
301-
/// with k distinct elements, the expected time to sort the data is *O(*n* log(*k*))*.
301+
/// with k distinct elements, the expected time to sort the data is *O(*n* \* log(*k*))*.
302302
///
303303
/// The auxiliary memory allocation behavior depends on the input length. Short slices are
304304
/// handled without allocation, medium sized slices allocate `self.len()` and beyond that it

‎core/src/slice/mod.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -2893,7 +2893,7 @@ impl<T> [T] {
28932893
/// The current implementation is based on [ipnsort] by Lukas Bergdoll and Orson Peters, which
28942894
/// combines the fast average case of quicksort with the fast worst case of heapsort, achieving
28952895
/// linear time on fully sorted and reversed inputs. On inputs with k distinct elements, the
2896-
/// expected time to sort the data is *O(*n* log(*k*))*.
2896+
/// expected time to sort the data is *O(*n* \* log(*k*))*.
28972897
///
28982898
/// It is typically faster than stable sorting, except in a few special cases, e.g., when the
28992899
/// slice is partially sorted.
@@ -2950,7 +2950,7 @@ impl<T> [T] {
29502950
/// The current implementation is based on [ipnsort] by Lukas Bergdoll and Orson Peters, which
29512951
/// combines the fast average case of quicksort with the fast worst case of heapsort, achieving
29522952
/// linear time on fully sorted and reversed inputs. On inputs with k distinct elements, the
2953-
/// expected time to sort the data is *O(*n* log(*k*))*.
2953+
/// expected time to sort the data is *O(*n* \* log(*k*))*.
29542954
///
29552955
/// It is typically faster than stable sorting, except in a few special cases, e.g., when the
29562956
/// slice is partially sorted.
@@ -2994,7 +2994,7 @@ impl<T> [T] {
29942994
/// The current implementation is based on [ipnsort] by Lukas Bergdoll and Orson Peters, which
29952995
/// combines the fast average case of quicksort with the fast worst case of heapsort, achieving
29962996
/// linear time on fully sorted and reversed inputs. On inputs with k distinct elements, the
2997-
/// expected time to sort the data is *O(*n* log(*k*))*.
2997+
/// expected time to sort the data is *O(*n* \* log(*k*))*.
29982998
///
29992999
/// It is typically faster than stable sorting, except in a few special cases, e.g., when the
30003000
/// slice is partially sorted.
@@ -3042,8 +3042,8 @@ impl<T> [T] {
30423042
/// Median of Medians using Tukey's Ninther for pivot selection, which guarantees linear runtime
30433043
/// for all inputs.
30443044
///
3045-
/// It is typically faster than sorting, except in a few special cases, e.g., when the slice is
3046-
/// nearly fully sorted, where [`slice::sort`] may be faster.
3045+
/// It is typically faster than stable sorting, except in a few special cases, e.g., when the
3046+
/// slice is nearly fully sorted, where `slice::sort` may be faster.
30473047
///
30483048
/// [`sort_unstable`]: slice::sort_unstable
30493049
///
@@ -3103,8 +3103,8 @@ impl<T> [T] {
31033103
/// Median of Medians using Tukey's Ninther for pivot selection, which guarantees linear runtime
31043104
/// for all inputs.
31053105
///
3106-
/// It is typically faster than sorting, except in a few special cases, e.g., when the slice is
3107-
/// nearly fully sorted, where [`slice::sort`] may be faster.
3106+
/// It is typically faster than stable sorting, except in a few special cases, e.g., when the
3107+
/// slice is nearly fully sorted, where `slice::sort` may be faster.
31083108
///
31093109
/// [`sort_unstable`]: slice::sort_unstable
31103110
///
@@ -3168,8 +3168,8 @@ impl<T> [T] {
31683168
/// Median of Medians using Tukey's Ninther for pivot selection, which guarantees linear runtime
31693169
/// for all inputs.
31703170
///
3171-
/// It is typically faster than sorting, except in a few special cases, e.g., when the slice is
3172-
/// nearly fully sorted, where [`slice::sort`] may be faster.
3171+
/// It is typically faster than stable sorting, except in a few special cases, e.g., when the
3172+
/// slice is nearly fully sorted, where `slice::sort` may be faster.
31733173
///
31743174
/// [`sort_unstable`]: slice::sort_unstable
31753175
///

0 commit comments

Comments
 (0)
Failed to load comments.