mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #2484 from jamesray1/patch-8
Added links for the getter function.
This commit is contained in:
commit
3c2b710b5e
@ -543,7 +543,7 @@ So ``bytes`` should always be preferred over ``byte[]`` because it is cheaper.
|
|||||||
that you are accessing the low-level bytes of the UTF-8 representation,
|
that you are accessing the low-level bytes of the UTF-8 representation,
|
||||||
and not the individual characters!
|
and not the individual characters!
|
||||||
|
|
||||||
It is possible to mark arrays ``public`` and have Solidity create a getter.
|
It is possible to mark arrays ``public`` and have Solidity create a :ref:`getter <visibility-and-getters>`.
|
||||||
The numeric index will become a required parameter for the getter.
|
The numeric index will become a required parameter for the getter.
|
||||||
|
|
||||||
.. index:: ! array;allocating, new
|
.. index:: ! array;allocating, new
|
||||||
@ -795,7 +795,7 @@ Because of this, mappings do not have a length or a concept of a key or value be
|
|||||||
Mappings are only allowed for state variables (or as storage reference types
|
Mappings are only allowed for state variables (or as storage reference types
|
||||||
in internal functions).
|
in internal functions).
|
||||||
|
|
||||||
It is possible to mark mappings ``public`` and have Solidity create a getter.
|
It is possible to mark mappings ``public`` and have Solidity create a :ref:`getter <visibility-and-getters>`.
|
||||||
The ``_KeyType`` will become a required parameter for the getter and it will
|
The ``_KeyType`` will become a required parameter for the getter and it will
|
||||||
return ``_ValueType``.
|
return ``_ValueType``.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user