about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2019-01-05 22:52:13 -0500
committerGitHub <noreply@github.com>2019-01-05 22:52:13 -0500
commit0d3dfdf6aadd7dd241956fa234bdd01de7291e5f (patch)
tree2d32a12af936e09d05d4b6bb93128e1979059bb3
parent96678df83821407f2112028cc0099866cb548c49 (diff)
downloadrust-0d3dfdf6aadd7dd241956fa234bdd01de7291e5f.tar.gz
rust-0d3dfdf6aadd7dd241956fa234bdd01de7291e5f.zip
Fix compile error
-rw-r--r--src/libcore/cmp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/cmp.rs b/src/libcore/cmp.rs
index cf24e08e2e7..89afe7057b1 100644
--- a/src/libcore/cmp.rs
+++ b/src/libcore/cmp.rs
@@ -117,7 +117,7 @@ use self::Ordering::*;
 /// // Implement <BookFormat> == <Book> comparisons
 /// impl PartialEq<Book> for BookFormat {
 ///     fn eq(&self, other: &Book) -> bool {
-///         *other == self.format
+///         *self == other.format
 ///     }
 /// }
 ///