aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-07-16 19:50:31 +0800
committerGitHub <noreply@github.com>2018-07-16 19:50:31 +0800
commit1a1cff189bcc9dc9dbd38ab40d6ee445b6128fd3 (patch)
tree8f1f9b6d1ec0163350e5785ba3c8128161517468
parent236284a264e9bc481b4d4af391c70a88338580f8 (diff)
parente3339a9684f69bf61f977052e4658b46f24527e2 (diff)
downloaddexon-solidity-1a1cff189bcc9dc9dbd38ab40d6ee445b6128fd3.tar.gz
dexon-solidity-1a1cff189bcc9dc9dbd38ab40d6ee445b6128fd3.tar.zst
dexon-solidity-1a1cff189bcc9dc9dbd38ab40d6ee445b6128fd3.zip
Merge pull request #4505 from nventuro/patch-1
Update docs allowed mapping key values
-rw-r--r--docs/types.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/types.rst b/docs/types.rst
index 16445a34..1641b921 100644
--- a/docs/types.rst
+++ b/docs/types.rst
@@ -846,7 +846,7 @@ Mappings
========
Mapping types are declared as ``mapping(_KeyType => _ValueType)``.
-Here ``_KeyType`` can be almost any type except for a mapping, a dynamically sized array, a contract, an enum and a struct.
+Here ``_KeyType`` can be almost any type except for a mapping, a dynamically sized array, a contract, a function, an enum and a struct.
``_ValueType`` can actually be any type, including mappings.
Mappings can be seen as `hash tables <https://en.wikipedia.org/wiki/Hash_table>`_ which are virtually initialized such that