소스 검색

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

Kirito 2 년 전
부모
커밋
daaf88c337
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
     class_name Rifle
+    extends Node2D
 
 
 If you use ``class_name``, Godot registers the Rifle type globally in
 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
 the editor, and you can use it anywhere, without having to preload it