document that pop does not return last element

It's already documented for push and this would clarify my incorrect assumption (that pop returns a value as in other languages) that caused confusion with https://github.com/ethereum/solidity/issues/13017
This commit is contained in:
alpharush 2022-05-13 09:45:55 -05:00 committed by GitHub
parent aafda389ea
commit 93755fcb70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -349,7 +349,7 @@ Array Members
**pop()**:
Dynamic storage arrays and ``bytes`` (not ``string``) have a member
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::
Increasing the length of a storage array by calling ``push()``