summaryrefslogtreecommitdiffstats
path: root/common/hreflect
diff options
context:
space:
mode:
authorSantiago De la Cruz <51337247+xhit@users.noreply.github.com>2021-04-21 17:31:38 -0400
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-04-22 12:24:12 +0200
commit0551df090e6b2a391941bf7383b79c2dbc11d416 (patch)
tree0c8ccb5537848a519c78966458ce1503964de6cb /common/hreflect
parentbca40cf0c9c7b75e6d5b4a9ac8b927eb17590c7e (diff)
Correct function name in comment
IsInt to IsNumber
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 cd5714d2f..0cc42ecc5 100644
--- a/common/hreflect/helpers.go
+++ b/common/hreflect/helpers.go
@@ -23,7 +23,7 @@ import (
)
// TODO(bep) replace the private versions in /tpl with these.
-// IsInt returns whether the given kind is a number.
+// IsNumber returns whether the given kind is a number.
func IsNumber(kind reflect.Kind) bool {
return IsInt(kind) || IsUint(kind) || IsFloat(kind)
}