diff --git a/godot-macros/src/lib.rs b/godot-macros/src/lib.rs index 11a40de15..df153334c 100644 --- a/godot-macros/src/lib.rs +++ b/godot-macros/src/lib.rs @@ -686,6 +686,12 @@ pub fn derive_godot_class(input: TokenStream) -> TokenStream { /// For implementation reasons, subsequent impl blocks must have the key 'secondary'. There is no difference between implementing all functions in one block or splitting them up between multiple blocks. /// ```no_run /// # use godot::prelude::*; +/// # #[derive(GodotClass)] +/// # #[class(init)] +/// # struct MyStruct { +/// # // Virtual functions require base object. +/// # base: Base, +/// # } /// #[godot_api] /// impl MyStruct { /// #[func]