aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Ward <chris.ward@ethereum.org>2019-01-21 01:11:24 +0800
committerChris Ward <chris.ward@ethereum.org>2019-01-21 01:11:24 +0800
commitf4130d7910d78f741663f0bbb9df8537b64986e1 (patch)
tree116ad6fe4055a3dcf9f6b937999af89127313264
parentd3270bc31174d6c155314231e07755c4bb055729 (diff)
downloaddexon-solidity-f4130d7910d78f741663f0bbb9df8537b64986e1.tar.gz
dexon-solidity-f4130d7910d78f741663f0bbb9df8537b64986e1.tar.zst
dexon-solidity-f4130d7910d78f741663f0bbb9df8537b64986e1.zip
Further clarify in-memory arrays
-rw-r--r--docs/types/reference-types.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/types/reference-types.rst b/docs/types/reference-types.rst
index b133bdf1..b9fd9194 100644
--- a/docs/types/reference-types.rst
+++ b/docs/types/reference-types.rst
@@ -132,7 +132,7 @@ The numeric index becomes a required parameter for the getter.
Allocating Memory Arrays
^^^^^^^^^^^^^^^^^^^^^^^^
-You can use the ``new`` keyword to create arrays with a runtime-dependent length in memory.
+You must use the ``new`` keyword to create arrays with a runtime-dependent length in memory.
As opposed to storage arrays, it is **not** possible to resize memory arrays (e.g. by assigning to
the ``.length`` member). You either have to calculate the required size in advance
or create a new memory array and copy every element.