This commit is contained in:
Barnabus
2018-11-05 16:17:04 +10:00
committed by thinkerou
parent 4f488aca55
commit 7a374f9a47
7 changed files with 8 additions and 8 deletions

View File

@ -525,7 +525,7 @@ func (c *Context) BindQuery(obj interface{}) error {
}
// MustBindWith binds the passed struct pointer using the specified binding engine.
// It will abort the request with HTTP 400 if any error ocurrs.
// It will abort the request with HTTP 400 if any error occurs.
// See the binding package.
func (c *Context) MustBindWith(obj interface{}, b binding.Binding) (err error) {
if err = c.ShouldBindWith(obj, b); err != nil {