mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #1519 from federicobond/patch-1
Fix mapping syntax in docs
This commit is contained in:
commit
8573b00eae
@ -765,7 +765,7 @@ assigning it to a local variable, as in
|
||||
Mappings
|
||||
========
|
||||
|
||||
Mapping types are declared as ``mapping _KeyType => _ValueType``.
|
||||
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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user