mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add reference to default values in mapping section
This commit is contained in:
parent
cb5fc23014
commit
d4d7d9854a
@ -570,7 +570,7 @@ 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
|
||||
all zeros. The similarity ends here, though: The key data is not actually stored
|
||||
all zeros: a type's :ref:`default value <default-value>`. The similarity ends here, though: The key data is not actually stored
|
||||
in a mapping, only its ``sha3`` hash used to look up the value.
|
||||
|
||||
Because of this, mappings do not have a length or a concept of a key or value being "set".
|
||||
|
Loading…
Reference in New Issue
Block a user