Merge pull request #76650 from Koyper/gdscript_range_docs

This commit is contained in:
Max Hilbrunner 2023-05-05 17:09:56 +02:00 committed by GitHub
commit ce75c46331
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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]