mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Fix typo
This commit is contained in:
parent
48c98a8d24
commit
a461e9d01a
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ type methods struct {
|
||||||
|
|
||||||
var methodCache = &methods{cache: make(map[methodKey]int)}
|
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.
|
// type lookup.
|
||||||
func GetMethodByName(v reflect.Value, name string) reflect.Value {
|
func GetMethodByName(v reflect.Value, name string) reflect.Value {
|
||||||
index := GetMethodIndexByName(v.Type(), name)
|
index := GetMethodIndexByName(v.Type(), name)
|
||||||
|
|
Loading…
Reference in a new issue