Skip to content

Commit

Permalink
fix typo in example
Browse files Browse the repository at this point in the history
  • Loading branch information
acoshift committed Apr 18, 2017
1 parent 88d70bd commit ff9b60a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mount_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,15 +190,15 @@ func ExampleMounter() {

m := New(Config{
Binder: func(r *http.Request, dst interface{}) error {
// binder will call if f contains an interface{}
// binder will called if f contains an interface{}
return json.NewDecoder(r.Body).Decode(dst)
},
SuccessHandler: func(w http.ResponseWriter, r *http.Request, res interface{}) {
// success handler will call if f returns an interface{}
// success handler will called if f returns an interface{}
jsonHandler(w, res)
},
ErrorHandler: func(w http.ResponseWriter, r *http.Request, err error) {
// error handler will fall if f returns an error
// error handler will called if f returns an error
res := &struct {
Error string `json:"error"`
}{err.Error()}
Expand Down

0 comments on commit ff9b60a

Please sign in to comment.