mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #8811 from fky2015/patch-1
Fix wrong demo code on `docs/types/mapping-types`.
This commit is contained in:
commit
5163c09eab
@ -138,8 +138,8 @@ the ``sum`` function iterates over to sum all the values.
|
||||
if (keyIndex > 0)
|
||||
return true;
|
||||
else {
|
||||
self.keys.push();
|
||||
keyIndex = self.keys.length;
|
||||
self.keys.push();
|
||||
self.data[key].keyIndex = keyIndex + 1;
|
||||
self.keys[keyIndex].key = key;
|
||||
self.size++;
|
||||
|
Loading…
Reference in New Issue
Block a user