Browse Source

Reworded difference between Dict and Resource

- Clarified that all objects' variables will be invalidated, not just the "second" object.
- Changed "their memory" to "from memory" to avoid confusion.
- Rephrased some statements to minimize wordiness.
- Replaced "gone" with "deleted".

(cherry picked from commit 7ab092bd7774c73db9293e9100b299a6d796a5a1)
Arman 6 years ago
parent
commit
7998a38cd2
1 changed files with 5 additions and 5 deletions
  1. 5 5
      getting_started/step_by_step/resources.rst

+ 5 - 5
getting_started/step_by_step/resources.rst

@@ -182,11 +182,11 @@ and :ref:`Resource <class_Resource>` features:
 
 .. warning::
 
-    Resources and Dictionaries are also different in that both are passed by reference,
-    but only Resources are reference-counted. This means that if a Dictionary is passed
-    between objects, and the first object is deleted, it will invalidate the second
-    object's variable. This is not so for Resources which won't free their memory until
-    *all* instances are gone.
+    Resources and Dictionaries are both passed by reference, but only Resources are
+    reference-counted. This means that if a Dictionary is passed between objects and
+    the first object is deleted, all other objects' references to the Dictinoary will
+    be invalidated. Conversely, Resources will not be freed from memory until *all* the 
+    objects are deleted.
 
     .. tabs::
       .. code-tab:: gdscript GDScript