about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@gmail.com>2020-04-29 12:06:32 -0400
committerNicholas Bishop <nicholasbishop@gmail.com>2020-04-29 12:06:32 -0400
commitf408a4e9bdfae6334a26f169d4502156cf469056 (patch)
tree5a2ccd9636a533704b87d852c8d270f5e2c95a6e
parente91aebc1a3835b9b420da0c021e211175a724b8d (diff)
downloadrust-f408a4e9bdfae6334a26f169d4502156cf469056.tar.gz
rust-f408a4e9bdfae6334a26f169d4502156cf469056.zip
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.
-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"]