Merge pull request #41207 from KoBeWi/you_got_error

Mention that Array.front/back throw error if empty
This commit is contained in:
Rémi Verschelde 2020-08-13 10:33:40 +02:00 committed by GitHub
commit bf291b62e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,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">
@ -216,7 +216,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">