Skip to content

Commit

Permalink
fix bug which incremented the wrong index in tagged_post_count
Browse files Browse the repository at this point in the history
  • Loading branch information
jinyus committed Nov 17, 2023
1 parent 7d5dfcc commit 6597c6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inko/related.inko
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ class async Main {
let mut it = 0
while it < indexes.size{

tagged_post_count.set(i, tagged_post_count.get(i) + 1)
let other_idx = indexes.get(it)
tagged_post_count.set(other_idx, tagged_post_count.get(other_idx) + 1)

it += 1
}
Expand Down

0 comments on commit 6597c6f

Please sign in to comment.