Skip to content

Commit

Permalink
fix typo for paramsInt function (gofiber#1913)
Browse files Browse the repository at this point in the history
  • Loading branch information
remotenode authored and trim21 committed Aug 15, 2022
1 parent 19a6dec commit 8e29f00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ctx.go
Expand Up @@ -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))
Expand Down

0 comments on commit 8e29f00

Please sign in to comment.