Update @GDScript.xml range docs to iterate backwards.

This commit is contained in:
Koyper 2023-05-01 11:03:48 -05:00
parent 6d7413be74
commit bcce315a9a
1 changed files with 2 additions and 2 deletions

View File

@ -227,8 +227,8 @@
To iterate over an [Array] backwards, use:
[codeblock]
var array = [3, 6, 9]
for i in range(array.size(), 0, -1):
print(array[i - 1])
for i in range(array.size() - 1, -1, -1):
print(array[i])
[/codeblock]
Output:
[codeblock]