From 50cb4f48c897ea9fea8fa7b8746b506b81c2c483 Mon Sep 17 00:00:00 2001 From: pavedroad Date: Tue, 12 Mar 2024 11:27:28 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: pavedroad --- _examples/translations/main.go | 2 +- util.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_examples/translations/main.go b/_examples/translations/main.go index 6f9466dab..5e57060bc 100644 --- a/_examples/translations/main.go +++ b/_examples/translations/main.go @@ -35,7 +35,7 @@ var ( func main() { - // NOTE: ommitting allot of error checking for brevity + // NOTE: omitting allot of error checking for brevity en := en.New() uni = ut.New(en, en) 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)