about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexis Bourget <alexis.bourget@gmail.com>2020-09-22 23:36:08 +0200
committerAlexis Bourget <alexis.bourget@gmail.com>2020-09-22 23:36:08 +0200
commitb6e72837fd36f65f7ff73dcf6e915971296a9af8 (patch)
tree03362435fc5b433ead3bd73f15b432c89bd2d1c3
parente0bc267512fc0cb49c86978192857e8187017f0b (diff)
Use Self more in core/src/cmp.rs
-rw-r--r--library/core/src/cmp.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/core/src/cmp.rs b/library/core/src/cmp.rs
index dde442aa7b5..ee79a94cc66 100644
--- a/library/core/src/cmp.rs
+++ b/library/core/src/cmp.rs
@@ -726,19 +726,19 @@ impl PartialOrd for Ordering {
 /// }
 ///
 /// impl PartialOrd for Person {
-///     fn partial_cmp(&self, other: &Person) -> Option<Ordering> {
+///     fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
 ///         Some(self.cmp(other))
 ///     }
 /// }
 ///
 /// impl Ord for Person {
-///     fn cmp(&self, other: &Person) -> Ordering {
+///     fn cmp(&self, other: &Self) -> Ordering {
 ///         self.height.cmp(&other.height)
 ///     }
 /// }
 ///
 /// impl PartialEq for Person {
-///     fn eq(&self, other: &Person) -> bool {
+///     fn eq(&self, other: &Self) -> bool {
 ///         self.height == other.height
 ///     }
 /// }