Permalink
Browse files

Fixed app.Call in documentation ans silence_middleware example

  • Loading branch information...
1 parent 119548b commit 06f5e0f58e42337e46f050575b54b454c5616b26 @victorcoder victorcoder committed Oct 21, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 README.markdown
  2. +1 −1 examples/silence_middleware.go
View
2 README.markdown
@@ -120,7 +120,7 @@ An extremely basic middleware package is simply a function:
func SilenceErrors(env mango.Env, app mango.App) (mango.Status, mango.Headers, mango.Body) {
// Call our upstream app
- status, headers, body := app.Call(env)
+ status, headers, body := app(env)
// If we got an error
if status == 500 {
View
2 examples/silence_middleware.go
@@ -6,7 +6,7 @@ import (
func SilenceErrors(env mango.Env, app mango.App) (mango.Status, mango.Headers, mango.Body) {
// Call our upstream app
- status, headers, body := app.Call(env)
+ status, headers, body := app(env)
// If we got an error
if status == 500 {

0 comments on commit 06f5e0f

Please sign in to comment.