Correct function name in comment

IsInt to IsNumber
This commit is contained in:
Santiago De la Cruz 2021-04-21 17:31:38 -04:00 committed by Bjørn Erik Pedersen
parent bca40cf0c9
commit 0551df090e

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)
}