Browse Source

Merge pull request #53228 from timothyqiu/dict-erase

Rémi Verschelde 3 years ago
parent
commit
f91afeb75d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      doc/classes/Dictionary.xml

+ 2 - 1
doc/classes/Dictionary.xml

@@ -213,7 +213,8 @@
 			<return type="bool" />
 			<return type="bool" />
 			<argument index="0" name="key" type="Variant" />
 			<argument index="0" name="key" type="Variant" />
 			<description>
 			<description>
-				Erase a dictionary key/value pair by key. Returns [code]true[/code] if the given key was present in the dictionary, [code]false[/code] otherwise. Does not erase elements while iterating over the dictionary.
+				Erase a dictionary key/value pair by key. Returns [code]true[/code] if the given key was present in the dictionary, [code]false[/code] otherwise.
+				[b]Note:[/b] Don't erase elements while iterating over the dictionary. You can iterate over the [method keys] array instead.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="get" qualifiers="const">
 		<method name="get" qualifiers="const">