From 0a5b07be319084a47fa4c354cdc6fb3f9c3cda88 Mon Sep 17 00:00:00 2001 From: pavedroad <138004431+pavedroad@users.noreply.github.com> Date: Sat, 1 Jun 2024 22:52:01 +0800 Subject: [PATCH] chore: fix some comments (#1242) ## Fixes Or Enhances **Make sure that you've checked the boxes below before you submit PR:** - [x] Tests exist or have been written that cover this particular change. @go-playground/validator-maintainers Signed-off-by: pavedroad --- util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.go b/util.go index 16851593d..fc8f8b13d 100644 --- a/util.go +++ b/util.go @@ -271,7 +271,7 @@ func asFloat64(param string) float64 { return i } -// asFloat64 returns the parameter as a float64 +// asFloat32 returns the parameter as a float32 // or panics if it can't convert func asFloat32(param string) float64 { i, err := strconv.ParseFloat(param, 32)