Skip to content

Commit

Permalink
fix: fix loop variable res captured by func literal error
Browse files Browse the repository at this point in the history
  • Loading branch information
mojixcoder committed Aug 12, 2024
1 parent 10feb9a commit a4c797d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions h3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,7 @@ func TestPentagons(t *testing.T) {
t.Parallel()

for _, res := range []int{0, 8, 15} {
res := res
t.Run(fmt.Sprintf("res=%d", res), func(t *testing.T) {
t.Parallel()
pentagons := Pentagons(res)
Expand Down

0 comments on commit a4c797d

Please sign in to comment.