We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e27cb02 + f1a5bc7 commit cdf48deCopy full SHA for cdf48de
docs/types/reference-types.rst
@@ -379,8 +379,10 @@ Array Members
379
uint[2**20] aLotOfIntegers;
380
// Note that the following is not a pair of dynamic arrays but a
381
// dynamic array of pairs (i.e. of fixed size arrays of length two).
382
- // Because of that, T[] is always a dynamic array of T, even if T
383
- // itself is an array.
+ // In Solidity, T[k] and T[] are always arrays with elements of type T,
+ // even if T itself is an array.
384
+ // Because of that, bool[2][] is a dynamic array of elements
385
+ // that are bool[2]. This is different from other languages, like C.
386
// Data location for all state variables is storage.
387
bool[2][] pairsOfFlags;
388
0 commit comments