]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #71680 - nicholasbishop:bishop-fix-eq-link, r=Mark-Simulacrum
authorDylan DPC <dylan.dpc@gmail.com>
Wed, 29 Apr 2020 17:39:37 +0000 (19:39 +0200)
committerGitHub <noreply@github.com>
Wed, 29 Apr 2020 17:39:37 +0000 (19:39 +0200)
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.

src/libcore/cmp.rs

index 335969b3ef04e46c125985430fdd819c9c496cef..9856efc6bd8a48c080048465d2f81b833363be65 100644 (file)
 /// assert_eq!(x.eq(&y), false);
 /// ```
 ///
+/// [`Eq`]: Eq
 /// [`eq`]: PartialEq::eq
 /// [`ne`]: PartialEq::ne
 #[lang = "eq"]