about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2019-01-06 15:18:22 -0500
committerGitHub <noreply@github.com>2019-01-06 15:18:22 -0500
commitbbbabdfc52eaa897c965bf10f50af4fc1512d4f0 (patch)
tree6ee88978c227496314724651bd71c710f1995dca /src/libcore
parent319a2c1cc2a4d99d5b1d6fb424c77963fd668f24 (diff)
downloadrust-bbbabdfc52eaa897c965bf10f50af4fc1512d4f0.tar.gz
rust-bbbabdfc52eaa897c965bf10f50af4fc1512d4f0.zip
Update cmp.rs
Diffstat (limited to 'src/libcore')
-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 5b78aa632d1..64e37ec5a56 100644
--- a/src/libcore/cmp.rs
+++ b/src/libcore/cmp.rs
@@ -65,7 +65,6 @@ use self::Ordering::*;
 /// the same book if their ISBN matches, even if the formats differ:
 ///
 /// ```
-/// #[derive(PartialEq)]
 /// enum BookFormat {
 ///     Paperback,
 ///     Hardback,
@@ -97,6 +96,7 @@ use self::Ordering::*;
 /// For example, let's tweak our previous code a bit:
 ///
 /// ```
+/// #[derive(PartialEq)]
 /// enum BookFormat {
 ///     Paperback,
 ///     Hardback,