Skip to content

Commit

Permalink
Fix default value to false in docs of QueryBool (#2811)
Browse files Browse the repository at this point in the history
fix default value to false in docs of QueryBool
  • Loading branch information
CAEL0 authored Jan 28, 2024
1 parent 7ba3137 commit e524b73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ctx.go
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,7 @@ func (c *Ctx) QueryInt(key string, defaultValue ...int) int {
}

// QueryBool returns bool value of key string parameter in the url.
// Default to empty or invalid key is true.
// Default to empty or invalid key is false.
//
// Get /?name=alex&want_pizza=false&id=
// QueryBool("want_pizza") == false
Expand Down

0 comments on commit e524b73

Please sign in to comment.