Skip to content

Commit

Permalink
Merge pull request #66 from shellixyz/patch-1
Browse files Browse the repository at this point in the history
Fix typo in README.md
  • Loading branch information
nrc authored Aug 28, 2024
2 parents f25e900 + b004f80 commit cacbada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ structs work for enum variants as well:

```rust
#[derive(new)]
struct Enum {
enum Enum {
FirstVariant,
SecondVariant(bool, #[new(default)] u8),
ThirdVariant { x: i32, #[new(value = "vec![1]")] y: Vec<u8> }
Expand Down

0 comments on commit cacbada

Please sign in to comment.