mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #11519 from axeldelamarre/doc/make-it-obvious
[docs] Make Array example easier to understand
This commit is contained in:
commit
2a98f82ba4
@ -114,7 +114,7 @@ Indices are zero-based, and access is in the opposite direction of the
|
||||
declaration.
|
||||
|
||||
For example, if you have a variable ``uint[][5] memory x``, you access the
|
||||
second ``uint`` in the third dynamic array using ``x[2][1]``, and to access the
|
||||
seventh ``uint`` in the third dynamic array using ``x[2][6]``, and to access the
|
||||
third dynamic array, use ``x[2]``. Again,
|
||||
if you have an array ``T[5] a`` for a type ``T`` that can also be an array,
|
||||
then ``a[2]`` always has type ``T``.
|
||||
|
Loading…
Reference in New Issue
Block a user