Skip to content

Commit

Permalink
Rollup merge of rust-lang#73292 - poliorcetics:fix-link-in-partialeq,…
Browse files Browse the repository at this point in the history
… r=Dylan-DPC

Fixing broken link for the Eq trait

Fixes rust-lang#73233.
  • Loading branch information
Manishearth authored Jul 9, 2020
2 parents 9c7a750 + 049f6ea commit 806cfce
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 806cfce

Please sign in to comment.