]> git.lizzy.rs Git - rust.git/commitdiff
fix broken link in PartialEq doc
authorEric Seppanen <eds@reric.net>
Sun, 10 Jan 2021 06:40:48 +0000 (22:40 -0800)
committerEric Seppanen <eds@reric.net>
Sun, 10 Jan 2021 06:40:48 +0000 (22:40 -0800)
PartialEq doc was attempting to link to [`Eq`] but instead we got a link
to `eq`. Disambiguate with "trait@Eq".

library/core/src/cmp.rs

index 0c459a820c6ea96af11baa721c26dde9cd179d63..38c6bfb0ef361285abc75f701af6f095b6e42fbe 100644 (file)
@@ -29,7 +29,7 @@
 ///
 /// 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 [`trait@Eq`].
 ///
 /// Formally, the equality must be (for all `a`, `b` and `c`):
 ///