mirror of
https://gitlab.cern.ch/wotsubo/endcap-sl-software-ri-generator.git
synced 2025-08-05 02:09:25 +09:00
fix(generator): value doc was not local (fixup !24)
This commit is contained in:
parent
ef1b10a21d
commit
34ce63c9d5
1 changed files with 1 additions and 1 deletions
|
@ -359,7 +359,7 @@ fn generate_custom_values_const_enumdef(
|
|||
Some(ref s) if s.is_empty() => quote! {},
|
||||
Some(ref desc) => {
|
||||
let desc = util::escape_brackets_with_numbers(desc);
|
||||
quote! { #![doc = #desc] }
|
||||
quote! { #[doc = #desc] }
|
||||
}
|
||||
};
|
||||
let variant_name = util::parse_to_ident(&value.name.to_upper_camel_case()).unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue