1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

Mention that Array.front/back throw error if empty

(cherry picked from commit 4ff1a34171)
This commit is contained in:
Tomasz Chabora
2020-08-12 17:53:18 +02:00
committed by Rémi Verschelde
parent 58a30199b4
commit f592600ee8

View File

@@ -99,7 +99,7 @@
<return type="Variant">
</return>
<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>
</method>
<method name="bsearch">
@@ -192,7 +192,7 @@
<return type="Variant">
</return>
<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>
</method>
<method name="has">