mirror of
https://github.com/godotengine/godot
synced 2024-09-05 04:28:29 +00:00
Merge pull request #76650 from Koyper/gdscript_range_docs
This commit is contained in:
commit
ce75c46331
|
@ -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