mirror of
https://github.com/rust-lang-nursery/rust-cookbook
synced 2024-11-22 11:33:09 +00:00
typo
line 7: change siply to simply
This commit is contained in:
parent
a79932c9a6
commit
dc8f1f2dd2
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
Sorts a Vector of Person structs with properties `name` and `age` by its natural
|
||||
order (By name and age). In order to make Person sortable you need four traits [`Eq`],
|
||||
[`PartialEq`], [`Ord`] and [`PartialOrd`]. These traits can be siply derived.
|
||||
[`PartialEq`], [`Ord`] and [`PartialOrd`]. These traits can be simply derived.
|
||||
You can also provide a custom comparator function using a [`vec:sort_by`] method and sort only by age.
|
||||
|
||||
```rust
|
||||
|
|
Loading…
Reference in a new issue