Be more specific about array return values.
The prior docs weren't clear if {pop_,}{front,back} would fail or return `null` on an empty array.
This commit is contained in:
parent
67f94ad76e
commit
e002044761
1 changed files with 4 additions and 4 deletions
|
@ -93,7 +93,7 @@
|
||||||
<return type="Variant">
|
<return type="Variant">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<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>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="bsearch">
|
<method name="bsearch">
|
||||||
|
@ -186,7 +186,7 @@
|
||||||
<return type="Variant">
|
<return type="Variant">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<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>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="has">
|
<method name="has">
|
||||||
|
@ -243,14 +243,14 @@
|
||||||
<return type="Variant">
|
<return type="Variant">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<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>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="pop_front">
|
<method name="pop_front">
|
||||||
<return type="Variant">
|
<return type="Variant">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<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>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="push_back">
|
<method name="push_back">
|
||||||
|
|
Loading…
Reference in a new issue