Skip to content

Commit

Permalink
Rollup merge of rust-lang#21048 - aroben:patch-1, r=steveklabnik
Browse files Browse the repository at this point in the history
Now both the enum values and the prose describing them mention the values in the same order.
  • Loading branch information
barosl committed Jan 20, 2015
2 parents 356c61d + 1c0acb9 commit b3f6e82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/trpl/compound-data-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ things from the standard library if you need them.
Okay, let's talk about the actual code in the example. `cmp` is a function that
compares two things, and returns an `Ordering`. We return either
`Ordering::Less`, `Ordering::Greater`, or `Ordering::Equal`, depending on if
the two values are greater, less, or equal. Note that each variant of the
the two values are less, greater, or equal. Note that each variant of the
`enum` is namespaced under the `enum` itself: it's `Ordering::Greater` not
`Greater`.

Expand Down

0 comments on commit b3f6e82

Please sign in to comment.