diff options
author | chriseth <chris@ethereum.org> | 2017-08-24 16:43:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-24 16:43:32 +0800 |
commit | 9c74473a9b08bfc58d97a46aceb8869c24095276 (patch) | |
tree | 82cca92945ea8420581d67e2030271fa2c42bcfd /docs | |
parent | 78c2dcacece0eec6556c4d0e04cf450d40a31cd4 (diff) | |
parent | b5d2a4ecd7ed971a962bac1d61b5d3ffca824084 (diff) | |
download | dexon-solidity-9c74473a9b08bfc58d97a46aceb8869c24095276.tar dexon-solidity-9c74473a9b08bfc58d97a46aceb8869c24095276.tar.gz dexon-solidity-9c74473a9b08bfc58d97a46aceb8869c24095276.tar.bz2 dexon-solidity-9c74473a9b08bfc58d97a46aceb8869c24095276.tar.lz dexon-solidity-9c74473a9b08bfc58d97a46aceb8869c24095276.tar.xz dexon-solidity-9c74473a9b08bfc58d97a46aceb8869c24095276.tar.zst dexon-solidity-9c74473a9b08bfc58d97a46aceb8869c24095276.zip |
Merge pull request #2787 from designium/patch-1
Adding storage into the pointer for Voter delegate
Diffstat (limited to 'docs')
-rw-r--r-- | docs/solidity-by-example.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/solidity-by-example.rst b/docs/solidity-by-example.rst index dde4495b..88eaadd5 100644 --- a/docs/solidity-by-example.rst +++ b/docs/solidity-by-example.rst @@ -126,7 +126,7 @@ of votes. // modifies `voters[msg.sender].voted` sender.voted = true; sender.delegate = to; - Voter delegate = voters[to]; + Voter storage delegate = voters[to]; if (delegate.voted) { // If the delegate already voted, // directly add to the number of votes |