about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2019-01-12 11:00:14 -0500
committerGitHub <noreply@github.com>2019-01-12 11:00:14 -0500
commit423a5bb5c437c2ce81d4150490d0cccfdbc33a4c (patch)
tree394d2ee6a360e69fccc6460dc6e359c42c8b7311 /src/libcore
parentbbbabdfc52eaa897c965bf10f50af4fc1512d4f0 (diff)
downloadrust-423a5bb5c437c2ce81d4150490d0cccfdbc33a4c.tar.gz
rust-423a5bb5c437c2ce81d4150490d0cccfdbc33a4c.zip
add comment explaining what the derive does
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/cmp.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/cmp.rs b/src/libcore/cmp.rs
index 64e37ec5a56..72ff9cca9fd 100644
--- a/src/libcore/cmp.rs
+++ b/src/libcore/cmp.rs
@@ -96,6 +96,7 @@ use self::Ordering::*;
 /// For example, let's tweak our previous code a bit:
 ///
 /// ```
+/// // The derive implements <BookFormat> == <BookFormat> comparisons
 /// #[derive(PartialEq)]
 /// enum BookFormat {
 ///     Paperback,