Преглед на файлове

Update `class_name` in Static typing in GDScript to follow style guide (#6821)

Kirito преди 2 години
родител
ревизия
56f8125aa3
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      tutorials/scripting/gdscript/static_typing.rst

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

@@ -131,8 +131,8 @@ For the example above, your Rifle.gd would look like this:
 
 ::
 
-    extends Node2D
     class_name Rifle
+    extends Node2D
 
 If you use ``class_name``, Godot registers the Rifle type globally in
 the editor, and you can use it anywhere, without having to preload it