Skip to content
This repository was archived by the owner on Dec 1, 2021. It is now read-only.

Commit 542b81d

Browse files
fabstudavecheney
authored andcommitted
minor: refactored small loop
1 parent 011399d commit 542b81d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

errors_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ func TestErrorEquality(t *testing.T) {
218218
WithStack(nil),
219219
}
220220

221-
for i := 0; i < len(vals); i++ {
222-
for j := 0; j < len(vals); j++ {
221+
for i := range vals {
222+
for j := range vals {
223223
_ = vals[i] == vals[j] // mustn't panic
224224
}
225225
}

0 commit comments

Comments
 (0)