mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
Mention that Array.front/back throw error if empty
This commit is contained in:
parent
9413446b2d
commit
4ff1a34171
1 changed files with 2 additions and 2 deletions
|
|
@ -119,7 +119,7 @@
|
||||||
<return type="Variant">
|
<return type="Variant">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Returns the last element of the array, or [code]null[/code] if the array is empty.
|
Returns the last element of the array. Throws an error and returns [code]null[/code] if the array is empty.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="bsearch">
|
<method name="bsearch">
|
||||||
|
|
@ -216,7 +216,7 @@
|
||||||
<return type="Variant">
|
<return type="Variant">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Returns the first element of the array, or [code]null[/code] if the array is empty.
|
Returns the first element of the array. Throws an error and returns [code]null[/code] if the array is empty.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="has">
|
<method name="has">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue