mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
Fix typo
This commit is contained in:
committed by
Anthony Fok
parent
48c98a8d24
commit
a461e9d01a
@@ -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)
|
||||||
|
Reference in New Issue
Block a user