add comment explaining what the derive does
This commit is contained in:
@@ -96,6 +96,7 @@ use self::Ordering::*;
|
|||||||
/// For example, let's tweak our previous code a bit:
|
/// For example, let's tweak our previous code a bit:
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
|
/// // The derive implements <BookFormat> == <BookFormat> comparisons
|
||||||
/// #[derive(PartialEq)]
|
/// #[derive(PartialEq)]
|
||||||
/// enum BookFormat {
|
/// enum BookFormat {
|
||||||
/// Paperback,
|
/// Paperback,
|
||||||
|
|||||||
Reference in New Issue
Block a user