mirror of
https://github.com/gin-gonic/gin.git
synced 2025-08-06 07:40:39 +08:00
Fixed documentation error
This commit is contained in:
@ -235,7 +235,7 @@ func (c *Context) Bind(obj interface{}) error {
|
||||
return c.BindWith(obj, b)
|
||||
}
|
||||
|
||||
// Shortcut for c.Bind(obj, binding.JSON)
|
||||
// Shortcut for c.BindWith(obj, binding.JSON)
|
||||
func (c *Context) BindJSON(obj interface{}) error {
|
||||
return c.BindWith(obj, binding.JSON)
|
||||
}
|
||||
|
Reference in New Issue
Block a user