Merge pull request #4505 from nventuro/patch-1

Update docs allowed mapping key values
This commit is contained in:
chriseth 2018-07-16 13:50:31 +02:00 committed by GitHub
commit 1a1cff189b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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