aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2016-11-23 21:54:46 +0800
committerGitHub <noreply@github.com>2016-11-23 21:54:46 +0800
commitec2e882376908be68b4c6e6a0f64e57b17c417db (patch)
tree736c6e53eb678fd97f43dab5885bc27ad51d19fe /docs
parent0c874bbf275a69eb22855bcdbc20a2df39004c13 (diff)
parentb24f4a4d006b69d976b173e058efcbe44387404b (diff)
downloaddexon-solidity-ec2e882376908be68b4c6e6a0f64e57b17c417db.tar.gz
dexon-solidity-ec2e882376908be68b4c6e6a0f64e57b17c417db.tar.zst
dexon-solidity-ec2e882376908be68b4c6e6a0f64e57b17c417db.zip
Merge pull request #1408 from ethereum/keytype
docs: some types cannot be the key type for mappings
Diffstat (limited to 'docs')
-rw-r--r--docs/types.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/types.rst b/docs/types.rst
index 1db35ced..21575cfb 100644
--- a/docs/types.rst
+++ b/docs/types.rst
@@ -739,9 +739,9 @@ assigning it to a local variable, as in
Mappings
========
-Mapping types are declared as ``mapping _KeyType => _ValueType``, where
-``_KeyType`` can be almost any type except for a mapping and ``_ValueType``
-can actually be any type, including 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.
+``_ValueType`` can actually be any type, including mappings.
Mappings can be seen as hashtables which are virtually initialized such that
every possible key exists and is mapped to a value whose byte-representation is