diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2021-01-12 07:59:11 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-12 07:59:11 +0900 |
| commit | 4646eac08ed656ccbced92c1382094b16bdb287e (patch) | |
| tree | 09538b835f19fbbc500fa9e764055882ea4e7abb | |
| parent | 8e6472fe32fb9e047783a5b10193e6895f5b3ac8 (diff) | |
| parent | eef95871a4a43b7e366c168fc03d316519029c62 (diff) | |
| download | rust-4646eac08ed656ccbced92c1382094b16bdb287e.tar.gz rust-4646eac08ed656ccbced92c1382094b16bdb287e.zip | |
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").
| -rw-r--r-- | library/core/src/cmp.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/cmp.rs b/library/core/src/cmp.rs index 0c459a820c6..38c6bfb0ef3 100644 --- a/library/core/src/cmp.rs +++ b/library/core/src/cmp.rs @@ -29,7 +29,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 [`trait@Eq`]. /// /// Formally, the equality must be (for all `a`, `b` and `c`): /// |
