From 7644e3b69096a967f0793c7fb9892d2a137ab25a Mon Sep 17 00:00:00 2001 From: naskya Date: Fri, 7 Jun 2024 22:25:09 +0900 Subject: [PATCH] fix (macro-rs): fix doctest --- packages/macro-rs/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/macro-rs/src/lib.rs b/packages/macro-rs/src/lib.rs index 0860298048..eebbe198cc 100644 --- a/packages/macro-rs/src/lib.rs +++ b/packages/macro-rs/src/lib.rs @@ -35,7 +35,7 @@ pub fn read_version_from_package_json(_item: proc_macro::TokenStream) -> proc_ma /// ```no_run /// #[cfg_attr(not(feature = "napi"), derive(Clone))] /// #[cfg_attr(feature = "napi", napi_derive::napi(attr))] -/// # fn f() {} // to work around doc test compilation error +/// # enum E {} // to work around doc test compilation error /// ``` /// where `attr` is given attribute(s). #[proc_macro_attribute]