Skip to content

Commit 1cbec68

Browse files
committed
reflect: fix SetIter test
Missed one review comment in CL 356049 Change-Id: I05be585d15e77afc1aa57b737cdc8ba7204bab98 Reviewed-on: https://go-review.googlesource.com/c/go/+/356051 Trust: Keith Randall <[email protected]> Trust: Josh Bleecher Snyder <[email protected]> Run-TryBot: Keith Randall <[email protected]> Reviewed-by: Josh Bleecher Snyder <[email protected]> TryBot-Result: Go Bot <[email protected]>
1 parent 81484cf commit 1cbec68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/reflect/all_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -7635,7 +7635,7 @@ func TestSetIter(t *testing.T) {
76357635
k.SetIterKey(i)
76367636
})
76377637
shouldPanic("Value.SetIterValue called before Next", func() {
7638-
k.SetIterValue(i)
7638+
v.SetIterValue(i)
76397639
})
76407640
data2 := map[string]int{}
76417641
for i.Next() {
@@ -7650,7 +7650,7 @@ func TestSetIter(t *testing.T) {
76507650
k.SetIterKey(i)
76517651
})
76527652
shouldPanic("Value.SetIterValue called on exhausted iterator", func() {
7653-
k.SetIterValue(i)
7653+
v.SetIterValue(i)
76547654
})
76557655

76567656
i.Reset(m)

0 commit comments

Comments
 (0)