diff --git a/crates/libs/implement/src/lib.rs b/crates/libs/implement/src/lib.rs index 3aa61ae78b..043d1b1762 100644 --- a/crates/libs/implement/src/lib.rs +++ b/crates/libs/implement/src/lib.rs @@ -27,10 +27,8 @@ use quote::{quote, ToTokens}; /// } /// } /// -/// fn main() { -/// let object: IValue = Value(123).into(); -/// // Call interface methods... -/// } +/// let object: IValue = Value(123).into(); +/// // Call interface methods... /// ``` #[proc_macro_attribute] pub fn implement( diff --git a/crates/libs/interface/src/lib.rs b/crates/libs/interface/src/lib.rs index 77c11d25c7..04b5234bc2 100644 --- a/crates/libs/interface/src/lib.rs +++ b/crates/libs/interface/src/lib.rs @@ -28,10 +28,8 @@ use syn::spanned::Spanned; /// } /// } /// -/// fn main() { -/// let object: IValue = Value(123).into(); -/// // Call interface methods... -/// } +/// let object: IValue = Value(123).into(); +/// // Call interface methods... /// ``` #[proc_macro_attribute] pub fn interface(