浏览代码

Merge pull request #11491 from alkemann/patch-1

Fix indentation causing render issue on code sample
Matthew 2 周之前
父节点
当前提交
105d52e603
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      tutorials/scripting/gdscript/gdscript_basics.rst

+ 4 - 4
tutorials/scripting/gdscript/gdscript_basics.rst

@@ -2394,12 +2394,12 @@ There are a few things to keep in mind here:
    to the ``state.gd`` base class, even if it does nothing. This brings us to the fact that you
    can pass expressions to the base constructor as well, not just variables, e.g.:
 
-   ::
+::
 
-       # idle.gd
+    # idle.gd
 
-       func _init():
-           super(5)
+    func _init():
+        super(5)
 
 Static constructor
 ~~~~~~~~~~~~~~~~~~