Skip to content

Commit c74e872

Browse files
committed
Merge pull request godotengine#111817 from charjr/fix-array-remove-at
Correct Array `remove_at()` class reference
2 parents 3f4c152 + 7e3dcf3 commit c74e872

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

doc/classes/Array.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,6 @@
684684
Removes the element from the array at the given index ([param position]). If the index is out of bounds, this method fails. If the index is negative, [param position] is considered relative to the end of the array.
685685
If you need to return the removed element, use [method pop_at]. To remove an element by value, use [method erase] instead.
686686
[b]Note:[/b] This method shifts every element's index after [param position] back, which may have a noticeable performance cost, especially on larger arrays.
687-
[b]Note:[/b] The [param position] cannot be negative. To remove an element relative to the end of the array, use [code]arr.remove_at(arr.size() - (i + 1))[/code]. To remove the last element from the array, use [code]arr.resize(arr.size() - 1)[/code].
688687
</description>
689688
</method>
690689
<method name="resize">

0 commit comments

Comments
 (0)