docs: Newly allocated arrays are initialized with default values

This commit is contained in:
Kamil Śliwak 2021-03-25 18:07:07 +01:00
parent 259bf3f23a
commit 797554668c

View File

@ -197,6 +197,9 @@ the ``.push`` member functions are not available).
You either have to calculate the required size in advance
or create a new memory array and copy every element.
As all variables in Solidity, the elements of newly allocated arrays are always initialized
with the :ref:`default value<default-value>`.
::
// SPDX-License-Identifier: GPL-3.0