Skip to content

Commit

Permalink
Typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigidity committed Dec 2, 2023
1 parent 9c72b62 commit 15923fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clvm-traits/docs/derive_macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ assert_eq!(SpendMode::from_clvm(a, ptr).unwrap(), mode);

### Untagged Enums

Often, the discriminator isn't necessary to encode, and you'd prefer to match try variant in order until one matches.
Often, the discriminator isn't necessary to encode, and you'd prefer to try to match each variant in order until one matches.
This is what `#[clvm(untagged)]` allows you to do. However, due to current limitations, it's not possible to mix this with `#[clvm(curry)]`.

Note that if there is any ambiguity, the first variant which matches a value will be the resulting value.
Expand Down

0 comments on commit 15923fb

Please sign in to comment.