Skip to content

Commit

Permalink
✏️ Typo fix in ParamsInt() (#1863)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomRomeo committed Apr 16, 2022
1 parent bd2acbb commit bea756f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ctx.go
Expand Up @@ -847,7 +847,7 @@ func (c *Ctx) AllParams() map[string]string {
// ParamsInt is used to get an integer from the route parameters
// 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 returb that value in case the param
// 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
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
Expand Down

0 comments on commit bea756f

Please sign in to comment.