mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
classref: Sync with current master branch (dc5f1b7)
This commit is contained in:
@@ -548,9 +548,9 @@ Returns ``true`` if the dictionary contains an entry with the given ``key``.
|
||||
{ 210, default },
|
||||
};
|
||||
|
||||
GD.Print(myDict.ContainsKey("Godot")); // Prints true
|
||||
GD.Print(myDict.ContainsKey(210)); // Prints true
|
||||
GD.Print(myDict.ContainsKey(4)); // Prints false
|
||||
GD.Print(myDict.ContainsKey("Godot")); // Prints True
|
||||
GD.Print(myDict.ContainsKey(210)); // Prints True
|
||||
GD.Print(myDict.ContainsKey(4)); // Prints False
|
||||
|
||||
|
||||
|
||||
@@ -608,7 +608,7 @@ Returns a hashed 32-bit integer value representing the dictionary contents.
|
||||
var dict2 = new Godot.Collections.Dictionary{{"A", 10}, {"B", 2}};
|
||||
|
||||
// Godot.Collections.Dictionary has no Hash() method. Use GD.Hash() instead.
|
||||
GD.Print(GD.Hash(dict1) == GD.Hash(dict2)); // Prints true
|
||||
GD.Print(GD.Hash(dict1) == GD.Hash(dict2)); // Prints True
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user