mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-26 14:10:20 +00:00
Add doc comment on generated inline properties struct (#1775)
This commit is contained in:
parent
a0b95a82a0
commit
8230566c4d
1 changed files with 3 additions and 0 deletions
|
@ -58,8 +58,11 @@ impl ToTokens for ComponentDeserializerOutput {
|
|||
fn to_tokens(&self, tokens: &mut TokenStream2) {
|
||||
let comp_fn = &self.comp_fn;
|
||||
let props_struct = &self.props_struct;
|
||||
let fn_ident = &comp_fn.sig.ident;
|
||||
|
||||
let doc = format!("Properties for the [`{fn_ident}`] component.");
|
||||
tokens.append_all(quote! {
|
||||
#[doc = #doc]
|
||||
#props_struct
|
||||
#[allow(non_snake_case)]
|
||||
#comp_fn
|
||||
|
|
Loading…
Reference in a new issue