Skip to content

Commit 423a5bb

Browse files
authored
add comment explaining what the derive does
1 parent bbbabdf commit 423a5bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libcore/cmp.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ use self::Ordering::*;
9696
/// For example, let's tweak our previous code a bit:
9797
///
9898
/// ```
99+
/// // The derive implements <BookFormat> == <BookFormat> comparisons
99100
/// #[derive(PartialEq)]
100101
/// enum BookFormat {
101102
/// Paperback,

0 commit comments

Comments
 (0)