Max Hilbrunner 7 years ago
parent
commit
5cd88f9857
1 changed files with 1 additions and 2 deletions
  1. 1 2
      learning/scripting/gdscript/gdscript_advanced.rst

+ 1 - 2
learning/scripting/gdscript/gdscript_advanced.rst

@@ -310,9 +310,8 @@ states and quick structs:
 
     # indexing
 
-    d.mother = "rebecca" # this doesn't work (use syntax below to add a key:value pair)
     d["mother"] = "rebecca" # this works
-    d.name = "caroline" # if key exists, assignment does work, this is why it's like a quick struct.
+    d.mother = "caroline" # this would work too to create a new key
 
 For & while
 -----------