浏览代码

Merge pull request #8429 from ToasterBiome/patch-2

Clarifies that Lua-style dictionary keys must be string literals in the GD Reference
Max Hilbrunner 1 年之前
父节点
当前提交
8541b60e08
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tutorials/scripting/gdscript/gdscript_basics.rst

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

@@ -908,7 +908,7 @@ Associative container which contains values referenced by unique keys.
 Lua-style table syntax is also supported. Lua-style uses ``=`` instead of ``:``
 Lua-style table syntax is also supported. Lua-style uses ``=`` instead of ``:``
 and doesn't use quotes to mark string keys (making for slightly less to write).
 and doesn't use quotes to mark string keys (making for slightly less to write).
 However, keys written in this form can't start with a digit (like any GDScript
 However, keys written in this form can't start with a digit (like any GDScript
-identifier).
+identifier), and must be string literals.
 
 
 ::
 ::