Skip to content

Commit 4646eac

Browse files
authored
Rollup merge of #80864 - ericseppanen:master, r=jyn514
std/core docs: fix wrong link in PartialEq PartialEq doc was attempting to link to ``[`Eq`]`` but instead we got a link to `` `eq` ``. Disambiguate with `trait@Eq`. You can see the bad link [here](https://doc.rust-lang.org/std/cmp/trait.PartialEq.html) (Second sentence, "floating point types implement PartialEq but not Eq").
2 parents 8e6472f + eef9587 commit 4646eac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/cmp.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use self::Ordering::*;
2929
///
3030
/// This trait allows for partial equality, for types that do not have a full
3131
/// equivalence relation. For example, in floating point numbers `NaN != NaN`,
32-
/// so floating point types implement `PartialEq` but not [`Eq`].
32+
/// so floating point types implement `PartialEq` but not [`trait@Eq`].
3333
///
3434
/// Formally, the equality must be (for all `a`, `b` and `c`):
3535
///

0 commit comments

Comments
 (0)