mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update mapping docs.
This commit is contained in:
parent
c184fe8e5b
commit
2d2fb547e7
@ -137,7 +137,8 @@ the ``sum`` function iterates over to sum all the values.
|
||||
if (keyIndex > 0)
|
||||
return true;
|
||||
else {
|
||||
keyIndex = self.keys.length++;
|
||||
self.keys.push();
|
||||
keyIndex = self.keys.length;
|
||||
self.data[key].keyIndex = keyIndex + 1;
|
||||
self.keys[keyIndex].key = key;
|
||||
self.size++;
|
||||
|
Loading…
Reference in New Issue
Block a user