diff --git a/docs/types.rst b/docs/types.rst index b9ecd0839..0dc436c95 100644 --- a/docs/types.rst +++ b/docs/types.rst @@ -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, 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 `. The numeric index will become a required parameter for the getter. .. 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 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 `. The ``_KeyType`` will become a required parameter for the getter and it will return ``_ValueType``.