Fix linkchecker issue · patricklam/verify-rust-std@118c712 (original) (raw)
2 files changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -192,7 +192,7 @@ impl [T] { | ||
192 | 192 | /// Sorting types that only implement [`PartialOrd`] such as [`f32`] and [`f64`] require |
193 | 193 | /// additional precautions. For example, `f32::NAN != f32::NAN`, which doesn't fulfill the |
194 | 194 | /// 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 | |
196 | 196 | /// order] users can sort slices containing floating-point values. Alternatively, if all values |
197 | 197 | /// in the slice are guaranteed to be in a subset for which [`PartialOrd::partial_cmp`] forms a |
198 | 198 | /// [total order], it's possible to sort the slice with `sort_by(|a, b |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -2893,7 +2893,7 @@ impl [T] { | ||
2893 | 2893 | /// Sorting types that only implement [`PartialOrd`] such as [`f32`] and [`f64`] require |
2894 | 2894 | /// additional precautions. For example, `f32::NAN != f32::NAN`, which doesn't fulfill the |
2895 | 2895 | /// 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 | |
2897 | 2897 | /// [total order] users can sort slices containing floating-point values. Alternatively, if all |
2898 | 2898 | /// values in the slice are guaranteed to be in a subset for which [`PartialOrd::partial_cmp`] |
2899 | 2899 | /// forms a [total order], it's possible to sort the slice with `sort_unstable_by(|a, b |