]> git.lizzy.rs Git - rust.git/commitdiff
Linkify types in docs
authorHavvy (Ryan Scheel) <ryan.havvy@gmail.com>
Mon, 10 Sep 2018 22:38:37 +0000 (15:38 -0700)
committerHavvy (Ryan Scheel) <ryan.havvy@gmail.com>
Sat, 6 Oct 2018 00:41:43 +0000 (17:41 -0700)
src/liballoc/slice.rs
src/libcore/slice/mod.rs

index 0802dc3e50073df9297bc489b354a0087902c493..5f992795531ec3dfc9bbcbed9e0d27dba9ec3bbd 100644 (file)
@@ -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`.
     ///
     /// ```
index f6695d876f8d6d69208462e36e8d705219be25db..a9d76376c07b6cbc60d7af7fc9e1fa3ceeb89005 100644 (file)
@@ -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`.
     ///
     /// ```