From 9ad00aa7d4c0e25e0f9f954f0479a3e2dccfa94f Mon Sep 17 00:00:00 2001 From: Vincent Alsteen Date: Thu, 22 Sep 2022 14:41:40 +0200 Subject: [PATCH] typo in doc --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0c4c0db..cef9e96 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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. \ No newline at end of file +- Generated trait impl do not yet carry the generic arguments, and as a consequence generic structs and enums are not yet supported. \ No newline at end of file