Skip to content

Commit

Permalink
Fixed typo and removed unfitting 'can'
Browse files Browse the repository at this point in the history
  • Loading branch information
henrik-schopmans committed Feb 16, 2015
1 parent c5db290 commit ad827af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doc/trpl/compound-data-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ The `ordering` variable has the type `Ordering`, and so contains one of the
three values. We then do a bunch of `if`/`else` comparisons to check which
one it is.

This `Ordering::Greater` notation is too long. Lets use `use` to import can
the `enum` variants instead. This will avoid full scoping:
This `Ordering::Greater` notation is too long. Let's use `use` to import the
`enum` variants instead. This will avoid full scoping:

```{rust}
use std::cmp::Ordering::{self, Equal, Less, Greater};
Expand Down

0 comments on commit ad827af

Please sign in to comment.