aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-07-25 21:51:09 +0800
committerGitHub <noreply@github.com>2017-07-25 21:51:09 +0800
commit3c2b710b5ed5c2f936079f1771a06618a2bb84a1 (patch)
treea6b69fd15531418f883b1259194812b0f0dc8aaa
parentcfb11ff7ec75865aba6323f443ce7055cca7b542 (diff)
parent3594f973dffc8216e7ba9687d74a65102b112bd4 (diff)
downloaddexon-solidity-3c2b710b5ed5c2f936079f1771a06618a2bb84a1.tar.gz
dexon-solidity-3c2b710b5ed5c2f936079f1771a06618a2bb84a1.tar.zst
dexon-solidity-3c2b710b5ed5c2f936079f1771a06618a2bb84a1.zip
Merge pull request #2484 from jamesray1/patch-8
Added links for the getter function.
-rw-r--r--docs/types.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/types.rst b/docs/types.rst
index b9ecd083..0dc436c9 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 <visibility-and-getters>`.
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 <visibility-and-getters>`.
The ``_KeyType`` will become a required parameter for the getter and it will
return ``_ValueType``.