瀏覽代碼

Fix extends statement

When extending from a filepath, you need to use a string
Nathan Merrill 6 年之前
父節點
當前提交
6d46050ecb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      getting_started/scripting/gdscript/gdscript_basics.rst

+ 1 - 1
getting_started/scripting/gdscript/gdscript_basics.rst

@@ -987,7 +987,7 @@ path. For example, if you name a script file ``character.gd``::
 
    # Inherit from Character.gd
 
-   extends res://path/to/character.gd
+   extends "res://path/to/character.gd"
 
    # Load character.gd and create a new node instance from it