From 118c71296c8243e60629e6a0ab0566ffca65169c Mon Sep 17 00:00:00 2001 From: Lukas Bergdoll Date: Fri, 9 Aug 2024 15:05:37 +0200 Subject: [PATCH] Fix linkchecker issue --- alloc/src/slice.rs | 2 +- core/src/slice/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/alloc/src/slice.rs b/alloc/src/slice.rs index aaa6a2abbd904..ef7469c68de62 100644 --- a/alloc/src/slice.rs +++ b/alloc/src/slice.rs @@ -192,7 +192,7 @@ impl [T] { /// Sorting types that only implement [`PartialOrd`] such as [`f32`] and [`f64`] require /// additional precautions. For example, `f32::NAN != f32::NAN`, which doesn't fulfill the /// reflexivity requirement of [`Ord`]. By using an alternative comparison function with - /// [`slice::sort_by`] such as [`f32::total_cmp`] or [`f64::total_cmp`] that defines a [total + /// `slice::sort_by` such as [`f32::total_cmp`] or [`f64::total_cmp`] that defines a [total /// order] users can sort slices containing floating-point values. Alternatively, if all values /// in the slice are guaranteed to be in a subset for which [`PartialOrd::partial_cmp`] forms a /// [total order], it's possible to sort the slice with `sort_by(|a, b| diff --git a/core/src/slice/mod.rs b/core/src/slice/mod.rs index e75a9a88045e9..d9945e860e6fc 100644 --- a/core/src/slice/mod.rs +++ b/core/src/slice/mod.rs @@ -2893,7 +2893,7 @@ impl [T] { /// Sorting types that only implement [`PartialOrd`] such as [`f32`] and [`f64`] require /// additional precautions. For example, `f32::NAN != f32::NAN`, which doesn't fulfill the /// reflexivity requirement of [`Ord`]. By using an alternative comparison function with - /// [`slice::sort_unstable_by`] such as [`f32::total_cmp`] or [`f64::total_cmp`] that defines a + /// `slice::sort_unstable_by` such as [`f32::total_cmp`] or [`f64::total_cmp`] that defines a /// [total order] users can sort slices containing floating-point values. Alternatively, if all /// values in the slice are guaranteed to be in a subset for which [`PartialOrd::partial_cmp`] /// forms a [total order], it's possible to sort the slice with `sort_unstable_by(|a, b|