Skip to content

Commit

Permalink
Mention mapping type without key value names
Browse files Browse the repository at this point in the history
  • Loading branch information
zemse authored and hrkrshnn committed Sep 25, 2022
1 parent 9861fd1 commit 694d3f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/types/mapping-types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The ``KeyType`` can be any
built-in value type, ``bytes``, ``string``, or any contract or enum type. Other user-defined
or complex types, such as mappings, structs or array types are not allowed.
``ValueType`` can be any type, including mappings, arrays and structs. ``KeyName`` and ``ValueName`` are
optional and can be any valid identifier that is not a type.
optional (so ``mapping(KeyType => ValueType)`` works as well) and can be any valid identifier that is not a type.

You can think of mappings as `hash tables <https://en.wikipedia.org/wiki/Hash_table>`_, which are virtually initialised
such that every possible key exists and is mapped to a value whose
Expand Down

0 comments on commit 694d3f0

Please sign in to comment.