From b24f4a4d006b69d976b173e058efcbe44387404b Mon Sep 17 00:00:00 2001 From: Yoichi Hirai Date: Mon, 21 Nov 2016 12:47:40 +0100 Subject: docs: some types cannot be the key type for mappings --- docs/types.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/types.rst') 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 -- cgit