Skip to content

Commit

Permalink
chore: fix some comments (#1242)
Browse files Browse the repository at this point in the history
## 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 <qcqs@outlook.com>
  • Loading branch information
pavedroad committed Jun 1, 2024
1 parent 3d65a9b commit 0a5b07b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0a5b07b

Please sign in to comment.