Clarify that public applies to state variables

This commit is contained in:
Chris Ward
2019-06-17 16:55:31 +01:00
committed by Chris Chinchilla
parent d7211c17e9
commit 7e4896740d
4 changed files with 13 additions and 10 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ in functions, or as parameters for library functions.
They cannot be used as parameters or return parameters
of contract functions that are publicly visible.
You can mark variables of mapping type as ``public`` and Solidity creates a
You can mark state variables of mapping type as ``public`` and Solidity creates a
:ref:`getter <visibility-and-getters>` for you. The ``_KeyType`` becomes a
parameter for the getter. If ``_ValueType`` is a value type or a struct,
the getter returns ``_ValueType``.