Max Hilbrunner 7 vuotta sitten
vanhempi
commit
4a649c7b4e
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 1 2
      getting_started/scripting/gdscript/gdscript_advanced.rst

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

@@ -310,9 +310,8 @@ states and quick structs:
 
 
     # indexing
     # indexing
 
 
-    d.mother = "rebecca"
     d["mother"] = "rebecca"
     d["mother"] = "rebecca"
-    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
 For & while
 -----------
 -----------