Merge pull request #15 from cbess/patch-2

Fix Sanic arg in docs
This commit is contained in:
channelcat 2016-10-15 13:40:13 -07:00 committed by GitHub
commit e16a5a3a27

View File

@ -7,7 +7,7 @@ Middleware is registered via the middleware decorator, and can either be added a
## Examples ## Examples
```python ```python
app = Sanic('__name__') app = Sanic(__name__)
@app.middleware @app.middleware
async def halt_request(request): async def halt_request(request):
@ -26,4 +26,4 @@ async def handler(request):
return text('I would like to speak now please') return text('I would like to speak now please')
app.run(host="0.0.0.0", port=8000) app.run(host="0.0.0.0", port=8000)
``` ```