mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #13018 from 0xalpharush/patch-1
document that pop does not return last element
This commit is contained in:
commit
af5662ffad
@ -349,7 +349,7 @@ Array Members
|
|||||||
**pop()**:
|
**pop()**:
|
||||||
Dynamic storage arrays and ``bytes`` (not ``string``) have a member
|
Dynamic storage arrays and ``bytes`` (not ``string``) have a member
|
||||||
function called ``pop()`` that you can use to remove an element from the
|
function called ``pop()`` that you can use to remove an element from the
|
||||||
end of the array. This also implicitly calls :ref:`delete<delete>` on the removed element.
|
end of the array. This also implicitly calls :ref:`delete<delete>` on the removed element. The function returns nothing.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
Increasing the length of a storage array by calling ``push()``
|
Increasing the length of a storage array by calling ``push()``
|
||||||
|
Loading…
Reference in New Issue
Block a user