Skip to content

Commit ad827af

Browse files
Fixed typo and removed unfitting 'can'
1 parent c5db290 commit ad827af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,8 @@ The `ordering` variable has the type `Ordering`, and so contains one of the
321321
three values. We then do a bunch of `if`/`else` comparisons to check which
322322
one it is.
323323

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

327327
```{rust}
328328
use std::cmp::Ordering::{self, Equal, Less, Greater};

0 commit comments

Comments
 (0)