docs: Newly allocated arrays are initialized with default values

This commit is contained in:
Kamil Śliwak
2021-03-30 14:31:51 +02:00
parent 259bf3f23a
commit 797554668c
+3
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