소스 검색

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

Scott 3 년 전
부모
커밋
7c3926dec8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      getting_started/scripting/gdscript/gdscript_basics.rst

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

@@ -1233,7 +1233,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")