From 049f6eaa792fbbf2b727fc278ddd23d1e11d57bd Mon Sep 17 00:00:00 2001 From: Alexis Bourget Date: Fri, 12 Jun 2020 23:52:52 +0200 Subject: [PATCH] Fixing broken link for the Eq trait --- src/libcore/cmp.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libcore/cmp.rs b/src/libcore/cmp.rs index 9856efc6bd8..79085740119 100644 --- a/src/libcore/cmp.rs +++ b/src/libcore/cmp.rs @@ -35,7 +35,7 @@ /// /// This trait allows for partial equality, for types that do not have a full /// equivalence relation. For example, in floating point numbers `NaN != NaN`, -/// so floating point types implement `PartialEq` but not [`Eq`]. +/// so floating point types implement `PartialEq` but not [`Eq`](Eq). /// /// Formally, the equality must be (for all `a`, `b` and `c`): /// @@ -191,7 +191,6 @@ /// assert_eq!(x.eq(&y), false); /// ``` /// -/// [`Eq`]: Eq /// [`eq`]: PartialEq::eq /// [`ne`]: PartialEq::ne #[lang = "eq"]