From 6414891d796c122f69a8fe54517e1b6cce2724cd Mon Sep 17 00:00:00 2001 From: alpharush <0xalpharush@protonmail.com> Date: Fri, 13 May 2022 09:45:55 -0500 Subject: [PATCH] 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 --- docs/types/reference-types.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/types/reference-types.rst b/docs/types/reference-types.rst index 74b6daa7f..5903ac3be 100644 --- a/docs/types/reference-types.rst +++ b/docs/types/reference-types.rst @@ -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` on the removed element. + end of the array. This also implicitly calls :ref:`delete` on the removed element. The function returns nothing. .. note:: Increasing the length of a storage array by calling ``push()``