Skip to content

Commit 0f6922d

Browse files
committed
Fix wrong big O star bracing in the doc comments
1 parent ea1ab74 commit 0f6922d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
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

+3-3
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.

0 commit comments

Comments
 (0)