about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-04-29 19:39:37 +0200
committerGitHub <noreply@github.com>2020-04-29 19:39:37 +0200
commitd11b5597f8decc07cfed70c0746be82a1008d57a (patch)
treeaf45ab8f007fc7c9d610b186298ed000288f8b8e /src
parent3286436e32a92c77f7b88cb329ae4195afdcffc6 (diff)
parentf408a4e9bdfae6334a26f169d4502156cf469056 (diff)
downloadrust-d11b5597f8decc07cfed70c0746be82a1008d57a.tar.gz
rust-d11b5597f8decc07cfed70c0746be82a1008d57a.zip
Rollup merge of #71680 - nicholasbishop:bishop-fix-eq-link, r=Mark-Simulacrum
Fix doc link to Eq trait from PartialEq trait

The `Eq` link was incorrectly going to the `eq` method of `PartialEq`
instead of to the `Eq` trait.
Diffstat (limited to 'src')
-rw-r--r--src/libcore/cmp.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/cmp.rs b/src/libcore/cmp.rs
index 335969b3ef0..9856efc6bd8 100644
--- a/src/libcore/cmp.rs
+++ b/src/libcore/cmp.rs
@@ -191,6 +191,7 @@ use self::Ordering::*;
 /// assert_eq!(x.eq(&y), false);
 /// ```
 ///
+/// [`Eq`]: Eq
 /// [`eq`]: PartialEq::eq
 /// [`ne`]: PartialEq::ne
 #[lang = "eq"]