fix typo for paramsInt function (#1913)

pull/1919/head
Artem Avanesov 2022-05-24 04:05:55 +04:00 committed by GitHub
parent deb02cb64e
commit 061c2a9e12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
ctx.go
View File

@ -858,7 +858,7 @@ func (c *Ctx) AllParams() map[string]string {
// it defaults to zero if the parameter is not found or if the
// parameter cannot be converted to an integer
// If a default value is given, it will return that value in case the param
// doesn't exist or cannot be converted to an integrer
// doesn't exist or cannot be converted to an integer
func (c *Ctx) ParamsInt(key string, defaultValue ...int) (int, error) {
// Use Atoi to convert the param to an int or return zero and an error
value, err := strconv.Atoi(c.Params(key))