fix (macro-rs): fix doctest

This commit is contained in:
naskya 2024-06-07 22:25:09 +09:00
parent 0839fe27b2
commit 7644e3b690
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -35,7 +35,7 @@ pub fn read_version_from_package_json(_item: proc_macro::TokenStream) -> proc_ma
/// ```no_run /// ```no_run
/// #[cfg_attr(not(feature = "napi"), derive(Clone))] /// #[cfg_attr(not(feature = "napi"), derive(Clone))]
/// #[cfg_attr(feature = "napi", napi_derive::napi(attr))] /// #[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). /// where `attr` is given attribute(s).
#[proc_macro_attribute] #[proc_macro_attribute]