Explorar el Código

Fix variable casing for class `load()` in GDScript basics (#5309)

Scott hace 3 años
padre
commit
ec8d40cb85
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      tutorials/scripting/gdscript/gdscript_basics.rst

+ 1 - 1
tutorials/scripting/gdscript/gdscript_basics.rst

@@ -1428,7 +1428,7 @@ either the ``load`` or ``preload`` functions (see below). Instancing of a loaded
 class resource is done by calling the ``new`` function on the class object::
 
     # Load the class resource when calling load().
-    var my_class = load("myclass.gd")
+    var MyClass = load("myclass.gd")
 
     # Preload the class only once at compile time.
     const MyClass = preload("myclass.gd")