Fixed typo and removed unfitting 'can'

This commit is contained in:
Henrik Schopmans 2015-02-16 17:58:17 +00:00
parent c5db290bf6
commit ad827af11c

View file

@ -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};