diff options
author | chriseth <chris@ethereum.org> | 2017-07-26 20:45:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-26 20:45:00 +0800 |
commit | 887823dca6e244d4dae84ca545fe3f0e8170b3d0 (patch) | |
tree | c4de664eee478fba2ecc91374f5491dbbd9d8570 /docs/types.rst | |
parent | 0d701c945604569af96f033a708705876f6c9bbf (diff) | |
parent | db739dff69e0d117145c7abbe2c40ce087bbd961 (diff) | |
download | dexon-solidity-887823dca6e244d4dae84ca545fe3f0e8170b3d0.tar.gz dexon-solidity-887823dca6e244d4dae84ca545fe3f0e8170b3d0.tar.zst dexon-solidity-887823dca6e244d4dae84ca545fe3f0e8170b3d0.zip |
Merge pull request #2627 from atfornes/patch-2
Change Mapping example to valid (executable) code
Diffstat (limited to 'docs/types.rst')
-rw-r--r-- | docs/types.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/types.rst b/docs/types.rst index 0dc436c9..b963c5b7 100644 --- a/docs/types.rst +++ b/docs/types.rst @@ -815,9 +815,10 @@ for each ``_KeyType``, recursively. } contract MappingUser { - address contractAddress = 0x42; function f() returns (uint) { - return MappingExample(contractAddress).balances(this); + MappingExample m = new MappingExample(); + m.update(100); + return m.balances(this); } } |