mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-08 12:01:32 -04:00
Fix typo
This commit is contained in:
parent
48c98a8d24
commit
a461e9d01a
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user