Skip to content

Commit 99bed21

Browse files
committed
Linkify types in docs
1 parent b911dba commit 99bed21

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/liballoc/slice.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ impl<T> [T] {
218218
/// * total and antisymmetric: exactly one of a < b, a == b or a > b is true; and
219219
/// * transitive, a < b and b < c implies a < c. The same must hold for both == and >.
220220
///
221-
/// For example, while `f64` doesn't implement `Ord` because `NaN != NaN`, we can use
221+
/// For example, while [`f64`] doesn't implement [`Ord`] because `NaN != NaN`, we can use
222222
/// `partial_cmp` as our sort function when we know the slice doesn't contain a `NaN`.
223223
///
224224
/// ```

src/libcore/slice/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1346,7 +1346,7 @@ impl<T> [T] {
13461346
/// * total and antisymmetric: exactly one of a < b, a == b or a > b is true; and
13471347
/// * transitive, a < b and b < c implies a < c. The same must hold for both == and >.
13481348
///
1349-
/// For example, while `f64` doesn't implement `Ord` because `NaN != NaN`, we can use
1349+
/// For example, while [`f64`] doesn't implement [`Ord`] because `NaN != NaN`, we can use
13501350
/// `partial_cmp` as our sort function when we know the slice doesn't contain a `NaN`.
13511351
///
13521352
/// ```

0 commit comments

Comments
 (0)