Skip to content

Commit e524b73

Browse files
authored
Fix default value to false in docs of QueryBool (#2811)
fix default value to false in docs of QueryBool
1 parent 7ba3137 commit e524b73

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ctx.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@ func (c *Ctx) QueryInt(key string, defaultValue ...int) int {
12221222
}
12231223

12241224
// QueryBool returns bool value of key string parameter in the url.
1225-
// Default to empty or invalid key is true.
1225+
// Default to empty or invalid key is false.
12261226
//
12271227
// Get /?name=alex&want_pizza=false&id=
12281228
// QueryBool("want_pizza") == false

0 commit comments

Comments
 (0)