Correct function name in comment

IsInt to IsNumber
This commit is contained in:
Santiago De la Cruz authored and Bjørn Erik Pedersen committed 2021-04-22 12:24:12 +02:00
1 parent bca40cf0c9
commit 0551df090e
1 file changed
+1 -1
+1 -1
View File
@@ -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)
}