Remove redundant space between sentences

This commit is contained in:
delphinus 2018-05-05 17:59:45 +09:00
parent 1cecbd367c
commit 4a60eed947
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ type Binding interface {
Bind(*http.Request, interface{}) error Bind(*http.Request, interface{}) error
} }
// BindingBody adds BindBody method to Binding. BindBody is similar with Bind, // BindingBody adds BindBody method to Binding. BindBody is similar with Bind,
// but it reads the body from supplied bytes instead of req.Body. // but it reads the body from supplied bytes instead of req.Body.
type BindingBody interface { type BindingBody interface {
Binding Binding

View File

@ -512,7 +512,7 @@ func (c *Context) ShouldBindWith(obj interface{}, b binding.Binding) error {
// ShouldBindBodyWith is similar with ShouldBindWith, but it stores the request // ShouldBindBodyWith is similar with ShouldBindWith, but it stores the request
// body into the context, and reuse when it is called again. // body into the context, and reuse when it is called again.
// //
// NOTE: This method reads the body before binding. So you should use // NOTE: This method reads the body before binding. So you should use
// ShouldBindWith for better performance if you need to call only once. // ShouldBindWith for better performance if you need to call only once.
func (c *Context) ShouldBindBodyWith( func (c *Context) ShouldBindBodyWith(
obj interface{}, bb binding.BindingBody, obj interface{}, bb binding.BindingBody,