Merge pull request #34571 from rcorre/array_returns

Be more specific about array return values.
This commit is contained in:
Rémi Verschelde 2019-12-30 16:22:30 +01:00 committed by GitHub
commit df2968de26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,7 +93,7 @@
<return type="Variant">
</return>
<description>
Returns the last element of the array if the array is not empty.
Returns the last element of the array, or [code]null[/code] if the array is empty.
</description>
</method>
<method name="bsearch">
@ -186,7 +186,7 @@
<return type="Variant">
</return>
<description>
Returns the first element of the array if the array is not empty.
Returns the first element of the array, or [code]null[/code] if the array is empty.
</description>
</method>
<method name="has">
@ -243,14 +243,14 @@
<return type="Variant">
</return>
<description>
Removes the last element of the array.
Removes and returns the last element of the array. Returns [code]null[/code] if the array is empty.
</description>
</method>
<method name="pop_front">
<return type="Variant">
</return>
<description>
Removes the first element of the array.
Removes and returns the first element of the array. Returns [code]null[/code] if the array is empty.
</description>
</method>
<method name="push_back">