Skip to content

Commit

Permalink
Correct function name in comment
Browse files Browse the repository at this point in the history
IsInt to IsNumber
  • Loading branch information
xhit authored and bep committed Apr 22, 2021
1 parent bca40cf commit 0551df0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/hreflect/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 0551df0

Please sign in to comment.