about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexis Bourget <alexis.bourget@gmail.com>2020-06-12 23:52:52 +0200
committerAlexis Bourget <alexis.bourget@gmail.com>2020-06-12 23:52:52 +0200
commit049f6eaa792fbbf2b727fc278ddd23d1e11d57bd (patch)
treedf8588c7b85f401dd852f0b60922dbb1e7624703
parent7c78a5f97de07a185eebae5a5de436c80d8ba9d4 (diff)
downloadrust-049f6eaa792fbbf2b727fc278ddd23d1e11d57bd.tar.gz
rust-049f6eaa792fbbf2b727fc278ddd23d1e11d57bd.zip
Fixing broken link for the Eq trait
-rw-r--r--src/libcore/cmp.rs3
1 files changed, 1 insertions, 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 @@ use self::Ordering::*;
 ///
 /// 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 @@ use self::Ordering::*;
 /// assert_eq!(x.eq(&y), false);
 /// ```
 ///
-/// [`Eq`]: Eq
 /// [`eq`]: PartialEq::eq
 /// [`ne`]: PartialEq::ne
 #[lang = "eq"]