diff --git a/src/appendix-03-derivable-traits.md b/src/appendix-03-derivable-traits.md index 1bcc1de931..06658917b2 100644 --- a/src/appendix-03-derivable-traits.md +++ b/src/appendix-03-derivable-traits.md @@ -93,9 +93,9 @@ value in each field in the order in which the fields appear in the struct definition. When derived on enums, variants of the enum declared earlier in the enum definition are considered less than the variants listed later. -The `PartialOrd` trait is required, for example, for the `gen_range` method -from the `rand` crate that generates a random value in the range specified by a -range expression. +The `PartialOrd` trait is required, for example, for the `random_range` +method from the `rand` crate that generates a random value in the range +specified by a range expression. The `Ord` trait allows you to know that for any two values of the annotated type, a valid ordering will exist. The `Ord` trait implements the `cmp` method,