diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2019-01-21 20:29:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-21 20:29:19 +0800 |
commit | ad20e14c8e81d3cfd785dc4776c22b3d900528e1 (patch) | |
tree | 7f1b95249134245508c19b7eac3bc47270b53b76 | |
parent | f8e9aed839dce87cebb3e27f20ee8dbe4b782a84 (diff) | |
parent | f4130d7910d78f741663f0bbb9df8537b64986e1 (diff) | |
download | dexon-solidity-ad20e14c8e81d3cfd785dc4776c22b3d900528e1.tar.gz dexon-solidity-ad20e14c8e81d3cfd785dc4776c22b3d900528e1.tar.zst dexon-solidity-ad20e14c8e81d3cfd785dc4776c22b3d900528e1.zip |
Merge pull request #5827 from ethereum/idio-memory-array
[DOCS] Further clarify in-memory arrays
-rw-r--r-- | docs/types/reference-types.rst | 2 |
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. |