aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-07-26 20:45:00 +0800
committerGitHub <noreply@github.com>2017-07-26 20:45:00 +0800
commit887823dca6e244d4dae84ca545fe3f0e8170b3d0 (patch)
treec4de664eee478fba2ecc91374f5491dbbd9d8570
parent0d701c945604569af96f033a708705876f6c9bbf (diff)
parentdb739dff69e0d117145c7abbe2c40ce087bbd961 (diff)
downloaddexon-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
-rw-r--r--docs/types.rst5
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);
}
}