summaryrefslogtreecommitdiffstats
path: root/common/hreflect
diff options
context:
space:
mode:
authorPanagiotis Koursaris <panakourweb@gmail.com>2022-03-10 16:53:23 +0200
committerAnthony Fok <anthony.fok@canada.ca>2022-03-22 00:39:33 -0600
commita461e9d01a95089eca571d3a49642b01d9173c18 (patch)
treee4b448b9682cfd7a3c08df46056dfc1259f14f63 /common/hreflect
parent48c98a8d24a0f5ceb17ce4977587f660d137a1a5 (diff)
Fix typo
Diffstat (limited to 'common/hreflect')
-rw-r--r--common/hreflect/helpers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/hreflect/helpers.go b/common/hreflect/helpers.go
index 7f3ef7ac2..e1c01456d 100644
--- a/common/hreflect/helpers.go
+++ b/common/hreflect/helpers.go
@@ -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)