reflect: tweak v.typecode.Key().(*rawType) -> v.typecode.key()

This commit is contained in:
Damian Gryski
2023-03-22 16:44:58 -07:00
committed by Ron Evans
parent 3aa8c8e0d1
commit f7880e73d8
+1 -1
View File
@@ -846,7 +846,7 @@ func (v Value) MapRange() *MapIter {
panic(&ValueError{Method: "MapRange", Kind: v.Kind()})
}
keyType := v.typecode.Key().(*rawType)
keyType := v.typecode.key()
isKeyStoredAsInterface := keyType.Kind() != String && !keyType.isBinary()
return &MapIter{