about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2020-07-09 11:50:17 -0700
committerGitHub <noreply@github.com>2020-07-09 11:50:17 -0700
commit5fc46fa9d2cced87165b95c41a85840a43035751 (patch)
tree1224add077758b67a3921ee9e85cbffd96652dd8 /src/libcore
parent5db778affee7c6600c8e7a177c48282dab3f6292 (diff)
parent049f6eaa792fbbf2b727fc278ddd23d1e11d57bd (diff)
Rollup merge of #73292 - poliorcetics:fix-link-in-partialeq, r=Dylan-DPC
Fixing broken link for the Eq trait

Fixes #73233.
Diffstat (limited to 'src/libcore')
-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"]