From dfae60d2edad94ecdfa7421bcd089a70bdb04bd8 Mon Sep 17 00:00:00 2001 From: Lucy Date: Sun, 8 Sep 2024 00:39:25 -0400 Subject: [PATCH] Fix doctests??? --- auxtools-impl/src/lib.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/auxtools-impl/src/lib.rs b/auxtools-impl/src/lib.rs index b1f1638..ff850bd 100644 --- a/auxtools-impl/src/lib.rs +++ b/auxtools-impl/src/lib.rs @@ -180,7 +180,9 @@ pub fn pin_dll(attr: TokenStream) -> TokenStream { /// /// Here we define a hook that multiplies a number passed to it by two. /// It can now be used to hook procs, for example -/// `hooks::hook("/proc/double_up", double_up);` ```ignore +/// `hooks::hook("/proc/double_up", double_up);` +/// +/// ```ignore /// #[hook] /// fn double_up(num: Value) { /// if let Some(num) = num.as_number() { @@ -189,9 +191,10 @@ pub fn pin_dll(attr: TokenStream) -> TokenStream { /// Value::null() /// } /// ``` -/// +/// /// This function is used to hook `/mob/proc/on_honked`. /// By specifying the proc path, we hook the proc immediately upon startup. +/// /// ```ignore /// #[hook("/mob/proc/on_honked")] /// fn on_honked(honker: Value) { @@ -200,7 +203,6 @@ pub fn pin_dll(attr: TokenStream) -> TokenStream { /// Value::null() /// } /// ``` - #[proc_macro_attribute] pub fn hook(attr: TokenStream, item: TokenStream) -> TokenStream { let input = syn::parse_macro_input!(item as syn::ItemFn);