Skip to content

Commit

Permalink
Rollup merge of #73292 - poliorcetics:fix-link-in-partialeq, r=Dylan-DPC
Browse files Browse the repository at this point in the history
Fixing broken link for the Eq trait

Fixes #73233.
  • Loading branch information
Manishearth authored Jul 9, 2020
2 parents 5db778a + 049f6ea commit 5fc46fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libcore/cmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`):
///
Expand Down Expand Up @@ -191,7 +191,6 @@ use self::Ordering::*;
/// assert_eq!(x.eq(&y), false);
/// ```
///
/// [`Eq`]: Eq
/// [`eq`]: PartialEq::eq
/// [`ne`]: PartialEq::ne
#[lang = "eq"]
Expand Down

0 comments on commit 5fc46fa

Please sign in to comment.