Skip to content

Commit 1be60b5

Browse files
committed
Fix linkchecker issue
1 parent 613155c commit 1be60b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/alloc/src/slice.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ impl<T> [T] {
192192
/// Sorting types that only implement [`PartialOrd`] such as [`f32`] and [`f64`] require
193193
/// additional precautions. For example, `f32::NAN != f32::NAN`, which doesn't fulfill the
194194
/// reflexivity requirement of [`Ord`]. By using an alternative comparison function with
195-
/// [`slice::sort_by`] such as [`f32::total_cmp`] or [`f64::total_cmp`] that defines a [total
195+
/// `slice::sort_by` such as [`f32::total_cmp`] or [`f64::total_cmp`] that defines a [total
196196
/// order] users can sort slices containing floating-point values. Alternatively, if all values
197197
/// in the slice are guaranteed to be in a subset for which [`PartialOrd::partial_cmp`] forms a
198198
/// [total order], it's possible to sort the slice with `sort_by(|a, b|

library/core/src/slice/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2893,7 +2893,7 @@ impl<T> [T] {
28932893
/// Sorting types that only implement [`PartialOrd`] such as [`f32`] and [`f64`] require
28942894
/// additional precautions. For example, `f32::NAN != f32::NAN`, which doesn't fulfill the
28952895
/// reflexivity requirement of [`Ord`]. By using an alternative comparison function with
2896-
/// [`slice::sort_unstable_by`] such as [`f32::total_cmp`] or [`f64::total_cmp`] that defines a
2896+
/// `slice::sort_unstable_by` such as [`f32::total_cmp`] or [`f64::total_cmp`] that defines a
28972897
/// [total order] users can sort slices containing floating-point values. Alternatively, if all
28982898
/// values in the slice are guaranteed to be in a subset for which [`PartialOrd::partial_cmp`]
28992899
/// forms a [total order], it's possible to sort the slice with `sort_unstable_by(|a, b|

0 commit comments

Comments
 (0)