Merge pull request #13018 from 0xalpharush/patch-1

document that pop does not return last element
This commit is contained in:
Daniel Kirchner 2022-05-13 17:57:35 +02:00 committed by GitHub
commit af5662ffad
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()``