Skip to content

Commit

Permalink
Merge pull request godotengine#76650 from Koyper/gdscript_range_docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mhilbrunner authored May 5, 2023
2 parents f6bf51c + bcce315 commit ce75c46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/gdscript/doc_classes/@GDScript.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit ce75c46

Please sign in to comment.