Skip to content

Commit

Permalink
Merge pull request #2787 from designium/patch-1
Browse files Browse the repository at this point in the history
Adding storage into the pointer for Voter delegate
  • Loading branch information
chriseth authored Aug 24, 2017
2 parents 78c2dca + b5d2a4e commit 9c74473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/solidity-by-example.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9c74473

Please sign in to comment.