ソースを参照

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 年間 前
コミット
d41f3b5e22
1 ファイル変更1 行追加1 行削除
  1. 1 1
      tutorials/scripting/gdscript/gdscript_basics.rst

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

@@ -787,7 +787,7 @@ Associative container which contains values referenced by unique keys.
 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).
 However, keys written in this form can't start with a digit (like any GDScript
-identifier).
+identifier), and must be string literals.
 
 ::