diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2016-11-21 19:47:40 +0800 |
---|---|---|
committer | Yoichi Hirai <i@yoichihirai.com> | 2016-11-21 19:47:40 +0800 |
commit | b24f4a4d006b69d976b173e058efcbe44387404b (patch) | |
tree | 2fad4efce69634b44182909880c68c56ad90d26d | |
parent | aa48008cc72c6f44db2cbd30a1bee522be67ecd8 (diff) | |
download | dexon-solidity-b24f4a4d006b69d976b173e058efcbe44387404b.tar.gz dexon-solidity-b24f4a4d006b69d976b173e058efcbe44387404b.tar.zst dexon-solidity-b24f4a4d006b69d976b173e058efcbe44387404b.zip |
docs: some types cannot be the key type for mappings
-rw-r--r-- | docs/types.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/types.rst b/docs/types.rst index b22ad7d4..518e8242 100644 --- a/docs/types.rst +++ b/docs/types.rst @@ -729,9 +729,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 |