From 55b63eceaa22f979bd40656fb8444cc94a7942b7 Mon Sep 17 00:00:00 2001 From: dtesniere <58301449+dtesniere@users.noreply.github.com> Date: Sun, 29 May 2022 00:40:56 +0200 Subject: Fix class name : change "string" to "String" Change case of "s" letter : "string" does not compile but "String" does (for gdScript) --- doc/classes/Dictionary.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/classes') diff --git a/doc/classes/Dictionary.xml b/doc/classes/Dictionary.xml index 8ee09ba8f8..b46719c758 100644 --- a/doc/classes/Dictionary.xml +++ b/doc/classes/Dictionary.xml @@ -43,7 +43,7 @@ You can access a dictionary's values by referencing the appropriate key. In the above example, [code]points_dict["White"][/code] will return [code]50[/code]. You can also write [code]points_dict.White[/code], which is equivalent. However, you'll have to use the bracket syntax if the key you're accessing the dictionary with isn't a fixed string (such as a number or variable). [codeblocks] [gdscript] - export(string, "White", "Yellow", "Orange") var my_color + export(String, "White", "Yellow", "Orange") var my_color var points_dict = {"White": 50, "Yellow": 75, "Orange": 100} func _ready(): # We can't use dot syntax here as `my_color` is a variable. -- cgit v1.2.3