summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2022-05-28 20:53:02 -0500
committerGitHub <noreply@github.com>2022-05-28 20:53:02 -0500
commitaa869869549148f9c5086e65b95790da0fe77988 (patch)
tree917f7beb53a09893359069ba04d6c84fe8f3ba58 /doc/classes
parent1f690f197a4fb0809afb2f59bf78e4d3d89fd847 (diff)
parent55b63eceaa22f979bd40656fb8444cc94a7942b7 (diff)
Merge pull request #61512 from dtesniere/patch-1
Fix class name : change "string" to "String"
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/Dictionary.xml2
1 files changed, 1 insertions, 1 deletions
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.