فهرست منبع

Mention ordering caveats for `Dictionary.hash()`

See https://github.com/godotengine/godot/issues/27615.
Hugo Locurcio 5 سال پیش
والد
کامیت
77b89263dd
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      doc/classes/Dictionary.xml

+ 1 - 0
doc/classes/Dictionary.xml

@@ -148,6 +148,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.
 			</description>
 		</method>
 		<method name="keys">