This commit is contained in:
Panagiotis Koursaris authored and Anthony Fok committed 2022-03-22 00:39:33 -06:00
1 parent 48c98a8d24
commit a461e9d01a
1 file changed
+1 -1
+1 -1
View File
@@ -128,7 +128,7 @@ type methods struct {
var methodCache = &methods{cache: make(map[methodKey]int)}
// GetMethodByName is the samve as reflect.Value.MethodByName, but it caches the
// GetMethodByName is the same as reflect.Value.MethodByName, but it caches the
// type lookup.
func GetMethodByName(v reflect.Value, name string) reflect.Value {
index := GetMethodIndexByName(v.Type(), name)