Skip to content

Commit

Permalink
Fix wrong big O star bracing in the doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Voultapher committed Jun 20, 2024
1 parent ea1ab74 commit 0f6922d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions alloc/src/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ impl<T> [T] {
/// The current implementation is based on [driftsort] by Orson Peters and Lukas Bergdoll, which
/// combines the fast average case of quicksort with the fast worst case and partial run
/// detection of mergesort, achieving linear time on fully sorted and reversed inputs. On inputs
/// with k distinct elements, the expected time to sort the data is *O(*n* \* log(*k*))*.
/// with k distinct elements, the expected time to sort the data is *O*(*n* \* log(*k*)).
///
/// The auxiliary memory allocation behavior depends on the input length. Short slices are
/// handled without allocation, medium sized slices allocate `self.len()` and beyond that it
Expand Down Expand Up @@ -252,7 +252,7 @@ impl<T> [T] {
/// The current implementation is based on [driftsort] by Orson Peters and Lukas Bergdoll, which
/// combines the fast average case of quicksort with the fast worst case and partial run
/// detection of mergesort, achieving linear time on fully sorted and reversed inputs. On inputs
/// with k distinct elements, the expected time to sort the data is *O(*n* \* log(*k*))*.
/// with k distinct elements, the expected time to sort the data is *O*(*n* \* log(*k*)).
///
/// The auxiliary memory allocation behavior depends on the input length. Short slices are
/// handled without allocation, medium sized slices allocate `self.len()` and beyond that it
Expand Down Expand Up @@ -298,7 +298,7 @@ impl<T> [T] {
/// The current implementation is based on [driftsort] by Orson Peters and Lukas Bergdoll, which
/// combines the fast average case of quicksort with the fast worst case and partial run
/// detection of mergesort, achieving linear time on fully sorted and reversed inputs. On inputs
/// with k distinct elements, the expected time to sort the data is *O(*n* \* log(*k*))*.
/// with k distinct elements, the expected time to sort the data is *O*(*n* \* log(*k*)).
///
/// The auxiliary memory allocation behavior depends on the input length. Short slices are
/// handled without allocation, medium sized slices allocate `self.len()` and beyond that it
Expand Down
6 changes: 3 additions & 3 deletions core/src/slice/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2893,7 +2893,7 @@ impl<T> [T] {
/// The current implementation is based on [ipnsort] by Lukas Bergdoll and Orson Peters, which
/// combines the fast average case of quicksort with the fast worst case of heapsort, achieving
/// linear time on fully sorted and reversed inputs. On inputs with k distinct elements, the
/// expected time to sort the data is *O(*n* \* log(*k*))*.
/// expected time to sort the data is *O*(*n* \* log(*k*)).
///
/// It is typically faster than stable sorting, except in a few special cases, e.g., when the
/// slice is partially sorted.
Expand Down Expand Up @@ -2950,7 +2950,7 @@ impl<T> [T] {
/// The current implementation is based on [ipnsort] by Lukas Bergdoll and Orson Peters, which
/// combines the fast average case of quicksort with the fast worst case of heapsort, achieving
/// linear time on fully sorted and reversed inputs. On inputs with k distinct elements, the
/// expected time to sort the data is *O(*n* \* log(*k*))*.
/// expected time to sort the data is *O*(*n* \* log(*k*)).
///
/// It is typically faster than stable sorting, except in a few special cases, e.g., when the
/// slice is partially sorted.
Expand Down Expand Up @@ -2994,7 +2994,7 @@ impl<T> [T] {
/// The current implementation is based on [ipnsort] by Lukas Bergdoll and Orson Peters, which
/// combines the fast average case of quicksort with the fast worst case of heapsort, achieving
/// linear time on fully sorted and reversed inputs. On inputs with k distinct elements, the
/// expected time to sort the data is *O(*n* \* log(*k*))*.
/// expected time to sort the data is *O*(*n* \* log(*k*)).
///
/// It is typically faster than stable sorting, except in a few special cases, e.g., when the
/// slice is partially sorted.
Expand Down

0 comments on commit 0f6922d

Please sign in to comment.