Skip to content

Commit 77b8926

Browse files
committed
Mention ordering caveats for Dictionary.hash()
See godotengine#27615.
1 parent 201d5a7 commit 77b8926

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/classes/Dictionary.xml

+1
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@
148148
# The line below prints `true`, whereas it would have printed `false` if both variables were compared directly.
149149
print(dict1.hash() == dict2.hash())
150150
[/codeblock]
151+
[b]Note:[/b] Dictionaries with the same keys/values but in a different order will have a different hash.
151152
</description>
152153
</method>
153154
<method name="keys">

0 commit comments

Comments
 (0)