Skip to content

Commit

Permalink
Merge pull request #583 from jamesray1/patch-10
Browse files Browse the repository at this point in the history
Minor edits voting: added commas
  • Loading branch information
DavidKnott authored Dec 21, 2017
2 parents bee759a + 30472cf commit d9ebaa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/viper-by-example.rst
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ Voting

In this contract, we will implement a system for participants to vote on a list
of proposals. The chairperson of the contract will be able to give each
participant the right to vote and each participant may choose to vote or
participant the right to vote, and each participant may choose to vote, or
delegate their vote to another voter. Finally, a winning proposal will be
determined upon calling the ``winning_proposals()`` method, which iterates through
all the proposals and returns the one with the greatest number of votes.
Expand All @@ -361,7 +361,7 @@ section by section. Let’s begin!

.. literalinclude:: ../examples/voting/ballot.v.py
:language: python
:lines: 3-21
:lines: 3-25

The variable ``voters`` is initialized as a mapping where the key is
the voter’s public address and the value is a struct describing the
Expand Down

0 comments on commit d9ebaa9

Please sign in to comment.