Skip to content

Commit

Permalink
typo in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
valsteen committed Sep 22, 2022
1 parent fda6cec commit 9ad00aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ fn test_sum() {
}
```

### EnumAccessor
### EnumSequence

Simply derive `EnumSequence`, and you get `enum_sequence(&self)` which returns a `usize`, starting from `0` and incrementing for each variant.

Expand Down Expand Up @@ -289,4 +289,4 @@ Conversely, separate structs such as `NoteOn` may derive from `SortBy` in order

- On unnamed variants, `EnumAccessor` only considers the first parameter.
- struct-level `sort_by` attribute always come before field-level attributes.
- Generated trait impl do not yet carry the generic arguments, and as a consequence generic struct and enums are not yet supported.
- Generated trait impl do not yet carry the generic arguments, and as a consequence generic structs and enums are not yet supported.

0 comments on commit 9ad00aa

Please sign in to comment.