aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-08-24 16:43:32 +0800
committerGitHub <noreply@github.com>2017-08-24 16:43:32 +0800
commit9c74473a9b08bfc58d97a46aceb8869c24095276 (patch)
tree82cca92945ea8420581d67e2030271fa2c42bcfd
parent78c2dcacece0eec6556c4d0e04cf450d40a31cd4 (diff)
parentb5d2a4ecd7ed971a962bac1d61b5d3ffca824084 (diff)
downloaddexon-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
-rw-r--r--docs/solidity-by-example.rst2
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