aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Ray <james.ray0001@gmail.com>2017-06-30 17:11:21 +0800
committerGitHub <noreply@github.com>2017-06-30 17:11:21 +0800
commit2ac51a1a9026f1ae451e030c70aa3be9f0da83e8 (patch)
treeb59779c380d4cc28d0810d2e10f99010f8cbbb7e
parent735c977db1824436d09d8e7a5c120fcab21003c3 (diff)
downloaddexon-solidity-2ac51a1a9026f1ae451e030c70aa3be9f0da83e8.tar.gz
dexon-solidity-2ac51a1a9026f1ae451e030c70aa3be9f0da83e8.tar.zst
dexon-solidity-2ac51a1a9026f1ae451e030c70aa3be9f0da83e8.zip
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 dfab79c8..52d07be8 100644
--- a/docs/types.rst
+++ b/docs/types.rst
@@ -557,7 +557,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 _`[getter](https://solidity.readthedocs.io/en/develop/contracts.html#getter-functions)`_.
The numeric index will become a required parameter for the getter.
.. index:: ! array;allocating, new
@@ -806,7 +806,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 `_getter <https://solidity.readthedocs.io/en/develop/contracts.html#getter-functions>`.
The ``_KeyType`` will become a required parameter for the getter and it will
return ``_ValueType``.