We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0bc267 commit b6e7283Copy full SHA for b6e7283
library/core/src/cmp.rs
@@ -726,19 +726,19 @@ impl PartialOrd for Ordering {
726
/// }
727
///
728
/// impl PartialOrd for Person {
729
-/// fn partial_cmp(&self, other: &Person) -> Option<Ordering> {
+/// fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
730
/// Some(self.cmp(other))
731
732
733
734
/// impl Ord for Person {
735
-/// fn cmp(&self, other: &Person) -> Ordering {
+/// fn cmp(&self, other: &Self) -> Ordering {
736
/// self.height.cmp(&other.height)
737
738
739
740
/// impl PartialEq for Person {
741
-/// fn eq(&self, other: &Person) -> bool {
+/// fn eq(&self, other: &Self) -> bool {
742
/// self.height == other.height
743
744
0 commit comments