Skip to content

Commit

Permalink
Update docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
zorn committed Aug 15, 2024
1 parent 4573e08 commit b96a3b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/flick/ranked_voting.ex
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,9 @@ defmodule Flick.RankedVoting do

@spec points_for_answer_in_votes([Vote.t()], any()) :: float()
defp points_for_answer_in_votes(votes, answer) do
# Returns the total points for the given answer across all votes while taking
# into account the index of the answer in the full list of ranked answers
# and the weight of each vote.
# Returns the total points for the given answer across all votes while
# taking into account the index of the answer in the full list of ranked
# answers and the weight of each vote.
Enum.reduce(votes, 0, fn vote, total ->
ranked_answer_index =
Enum.find_index(vote.ranked_answers, fn ranked_answer ->
Expand Down

0 comments on commit b96a3b8

Please sign in to comment.