瀏覽代碼

Merge pull request #7308 from Yunusemre-Oeztuerk/patch-1

Max Hilbrunner 2 年之前
父節點
當前提交
9caad0c5e4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tutorials/scripting/gdextension/gdextension_cpp_example.rst

+ 1 - 1
tutorials/scripting/gdextension/gdextension_cpp_example.rst

@@ -455,7 +455,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");
         ClassDB::add_property("GDExample", PropertyInfo(Variant::FLOAT, "amplitude"), "set_amplitude", "get_amplitude");
     }
     }
 
 
-    void GDExample::GDExample() {
+    GDExample::GDExample() {
         // Initialize any variables here.
         // Initialize any variables here.
         time_passed = 0.0;
         time_passed = 0.0;
         amplitude = 10.0;
         amplitude = 10.0;