浏览代码

Fixed script block

A script block was not displaying correctly due to incorrect indentation
Ryan 7 年之前
父节点
当前提交
5b0bcbaf7c
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      getting_started/scripting/gdscript/gdscript_basics.rst

+ 4 - 3
getting_started/scripting/gdscript/gdscript_basics.rst

@@ -988,10 +988,11 @@ There are a few things to keep in mind here:
    to the ``State.gd`` base class even if it does nothing. Which brings us to the fact that you
    can pass literals in the base constructor as well, not just variables. Eg.:
 
-   ::
-      # Idle.gd
+::
+
+    # Idle.gd
 
-      func _init().(5):
+    func _init().(5):
         pass
 
 Inner classes