Skip to content

Commit

Permalink
Turn bare links into automatic links
Browse files Browse the repository at this point in the history
  • Loading branch information
Voultapher committed Apr 16, 2024
1 parent 48a6536 commit eeee5de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions library/core/src/slice/sort/stable/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ pub(crate) mod quicksort;

/// Stable sort called driftsort by Orson Peters and Lukas Bergdoll.
/// Design document:
/// https://github.com/Voultapher/sort-research-rs/blob/main/writeup/driftsort_introduction/text.md
/// <https://github.com/Voultapher/sort-research-rs/blob/main/writeup/driftsort_introduction/text.md>
///
/// Upholds all safety properties outlined here:
/// https://github.com/Voultapher/sort-research-rs/blob/main/writeup/sort_safety/text.md
/// <https://github.com/Voultapher/sort-research-rs/blob/main/writeup/sort_safety/text.md>
#[inline(always)]
pub fn sort<T, F: FnMut(&T, &T) -> bool, BufT: BufGuard<T>>(v: &mut [T], is_less: &mut F) {
// Arrays of zero-sized types are always all-equal, and thus sorted.
Expand Down
4 changes: 2 additions & 2 deletions library/core/src/slice/sort/unstable/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ pub(crate) mod quicksort;

/// Unstable sort called ipnsort by Lukas Bergdoll.
/// Design document:
/// https://github.com/Voultapher/sort-research-rs/blob/main/writeup/ipnsort_introduction/text.md
/// <https://github.com/Voultapher/sort-research-rs/blob/main/writeup/ipnsort_introduction/text.md>
///
/// Upholds all safety properties outlined here:
/// https://github.com/Voultapher/sort-research-rs/blob/main/writeup/sort_safety/text.md
/// <https://github.com/Voultapher/sort-research-rs/blob/main/writeup/sort_safety/text.md>
#[inline(always)]
pub fn sort<T, F: FnMut(&T, &T) -> bool>(v: &mut [T], is_less: &mut F) {
// Arrays of zero-sized types are always all-equal, and thus sorted.
Expand Down

0 comments on commit eeee5de

Please sign in to comment.