Explorar o código

Swap `extends` line with `class_name` to follow GDScript style guide (#5573)

Markus Sauermann %!s(int64=3) %!d(string=hai) anos
pai
achega
dd10dff974
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      tutorials/best_practices/scenes_versus_scripts.rst

+ 2 - 1
tutorials/best_practices/scenes_versus_scripts.rst

@@ -209,8 +209,9 @@ In the end, the best approach is to consider the following:
     .. code-tab:: gdscript GDScript
 
       # game.gd
-      extends Reference
       class_name Game # extends Reference, so it won't show up in the node creation dialog
+      extends Reference
+
       const MyScene = preload("my_scene.tscn")
 
       # main.gd