Skip to content

Commit

Permalink
Update example in the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
janos committed Feb 1, 2024
1 parent d9e4747 commit d1ebb4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ func main() {
preferences := schulze.NewPreferences(len(choices))

// First vote.
if err := schulze.Vote(preferences, choices, schulze.Ballot[string]{
if _, err := schulze.Vote(preferences, choices, schulze.Ballot[string]{
"A": 1,
}); err != nil {
log.Fatal(err)
}

// Second vote.
if err := schulze.Vote(preferences, choices, schulze.Ballot[string]{
if _, err := schulze.Vote(preferences, choices, schulze.Ballot[string]{
"A": 1,
"B": 1,
"C": 2,
Expand Down

0 comments on commit d1ebb4d

Please sign in to comment.