mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 09:13:07 +03:00
Linkify types in docs
This commit is contained in:
@@ -218,7 +218,7 @@ pub fn sort(&mut self)
|
||||
/// * total and antisymmetric: exactly one of a < b, a == b or a > b is true; and
|
||||
/// * transitive, a < b and b < c implies a < c. The same must hold for both == and >.
|
||||
///
|
||||
/// For example, while `f64` doesn't implement `Ord` because `NaN != NaN`, we can use
|
||||
/// For example, while [`f64`] doesn't implement [`Ord`] because `NaN != NaN`, we can use
|
||||
/// `partial_cmp` as our sort function when we know the slice doesn't contain a `NaN`.
|
||||
///
|
||||
/// ```
|
||||
|
||||
@@ -1346,7 +1346,7 @@ pub fn sort_unstable(&mut self)
|
||||
/// * total and antisymmetric: exactly one of a < b, a == b or a > b is true; and
|
||||
/// * transitive, a < b and b < c implies a < c. The same must hold for both == and >.
|
||||
///
|
||||
/// For example, while `f64` doesn't implement `Ord` because `NaN != NaN`, we can use
|
||||
/// For example, while [`f64`] doesn't implement [`Ord`] because `NaN != NaN`, we can use
|
||||
/// `partial_cmp` as our sort function when we know the slice doesn't contain a `NaN`.
|
||||
///
|
||||
/// ```
|
||||
|
||||
Reference in New Issue
Block a user