Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
- Accurately label the type of fields in FromVariant derivers
- Add bounds constraint to magic field docs

Fix #200
  • Loading branch information
TedDriggs committed Sep 26, 2022
1 parent ab279f5 commit f77e999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Expand Up @@ -61,7 +61,7 @@
//! |---|---|---|
//! |`ident`|`syn::Ident`|The identifier of the passed-in variant|
//! |`discriminant`|`Option<syn::Expr>`|For a variant such as `Example = 2`, the `2`|
//! |`fields`|`Option<darling::ast::Fields<__>>`|The fields associated with the variant|
//! |`fields`|`darling::ast::Fields<T> where T: FromField`|The fields associated with the variant|
//! |`attrs`|`Vec<syn::Attribute>`|The forwarded attributes from the passed in variant. These are controlled using the `forward_attrs` attribute.|

extern crate core;
Expand Down

0 comments on commit f77e999

Please sign in to comment.