Merge pull request #76650 from Koyper/gdscript_range_docs
This commit is contained in:
commit
ce75c46331
1 changed files with 2 additions and 2 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue