diff options
Diffstat (limited to 'mingling_macros/src/lib.rs')
| -rw-r--r-- | mingling_macros/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mingling_macros/src/lib.rs b/mingling_macros/src/lib.rs index c87584d..6ae8693 100644 --- a/mingling_macros/src/lib.rs +++ b/mingling_macros/src/lib.rs @@ -438,7 +438,7 @@ pub fn pack_structural(input: TokenStream) -> TokenStream { /// This macro provides a concise way to define error types that implement `Grouped` /// and are registered for inclusion in the program enum. /// -/// The `name` field is automatically set to the snake_case version of the struct name +/// The `name` field is automatically set to the `snake_case` version of the struct name /// at compile time. /// /// # Syntax @@ -1101,7 +1101,7 @@ pub fn completion(attr: TokenStream, item: TokenStream) -> TokenStream { #[cfg(feature = "extras")] #[proc_macro_attribute] pub fn program_setup(attr: TokenStream, item: TokenStream) -> TokenStream { - program_setup::setup_attr(attr, item) + program_setup::setup_attr(&attr, item) } /// Declares a command from a plain function. |
