add comment explaining what the derive does

This commit is contained in:
Corey Farwell
2019-01-12 11:00:14 -05:00
committed by GitHub
parent bbbabdfc52
commit 423a5bb5c4

View File

@@ -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,