diff --git a/tutorials/scripting/gdextension/gdextension_cpp_example.rst b/tutorials/scripting/gdextension/gdextension_cpp_example.rst index d6d8f7e01b7..e3c4d02e765 100644 --- a/tutorials/scripting/gdextension/gdextension_cpp_example.rst +++ b/tutorials/scripting/gdextension/gdextension_cpp_example.rst @@ -442,7 +442,7 @@ show the methods we end up changing, don't remove the lines we're omitting: ClassDB::add_property("GDExample", PropertyInfo(Variant::FLOAT, "amplitude"), "set_amplitude", "get_amplitude"); } - void GDExample::GDExample() { + GDExample::GDExample() { // Initialize any variables here. time_passed = 0.0; amplitude = 10.0;