Correct function name in comment
authorSantiago De la Cruz <51337247+xhit@users.noreply.github.com>
Wed, 21 Apr 2021 21:31:38 +0000 (17:31 -0400)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 22 Apr 2021 10:24:12 +0000 (12:24 +0200)
IsInt to IsNumber

common/hreflect/helpers.go

index cd5714d2f1463bdbc41c00fd52945f99c779360c..0cc42ecc5b2b40b6d0205bf091a178f05a4887cf 100644 (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)
 }