Skip to content

Commit 1c0acb9

Browse files
committed
Match prose with code when discussing Ordering values
Now both the enum values and the prose describing them mention the values in the same order.
1 parent 055cc2e commit 1c0acb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/trpl/compound-data-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ things from the standard library if you need them.
253253
Okay, let's talk about the actual code in the example. `cmp` is a function that
254254
compares two things, and returns an `Ordering`. We return either
255255
`Ordering::Less`, `Ordering::Greater`, or `Ordering::Equal`, depending on if
256-
the two values are greater, less, or equal. Note that each variant of the
256+
the two values are less, greater, or equal. Note that each variant of the
257257
`enum` is namespaced under the `enum` itself: it's `Ordering::Greater` not
258258
`Greater`.
259259

0 commit comments

Comments
 (0)