From 8e8861ed065d9d21d5dba7445b78e18a8cc69dcf Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 10 Jun 2020 09:33:43 +0200 Subject: [PATCH] Mention ordering caveats for `Dictionary.hash()` See https://github.com/godotengine/godot/issues/27615. (cherry picked from commit 77b89263dd37299c3034327a99374d114b42706d) --- doc/classes/Dictionary.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/classes/Dictionary.xml b/doc/classes/Dictionary.xml index d6497be7931..32a3ba89fe5 100644 --- a/doc/classes/Dictionary.xml +++ b/doc/classes/Dictionary.xml @@ -146,6 +146,7 @@ # The line below prints `true`, whereas it would have printed `false` if both variables were compared directly. print(dict1.hash() == dict2.hash()) [/codeblock] + [b]Note:[/b] Dictionaries with the same keys/values but in a different order will have a different hash.