From f77e99935458ceb25f5efcf922e645c7f5059044 Mon Sep 17 00:00:00 2001 From: Ted Driggs Date: Mon, 26 Sep 2022 09:11:56 -0700 Subject: [PATCH] Update docs - Accurately label the type of fields in FromVariant derivers - Add bounds constraint to magic field docs Fix #200 --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 2429c7cf..c84a55ce 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -61,7 +61,7 @@ //! |---|---|---| //! |`ident`|`syn::Ident`|The identifier of the passed-in variant| //! |`discriminant`|`Option`|For a variant such as `Example = 2`, the `2`| -//! |`fields`|`Option>`|The fields associated with the variant| +//! |`fields`|`darling::ast::Fields where T: FromField`|The fields associated with the variant| //! |`attrs`|`Vec`|The forwarded attributes from the passed in variant. These are controlled using the `forward_attrs` attribute.| extern crate core;