From 365adc1fdad3938d9340e8e9fc44dfc84f5505f4 Mon Sep 17 00:00:00 2001 From: "C. Bess" Date: Sat, 15 Oct 2016 13:05:44 -0500 Subject: [PATCH] Fix Sanic arg I assume the value of `__name__` (module name) was intended. --- docs/middleware.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/middleware.md b/docs/middleware.md index 3a6b74dc..1954a0cd 100644 --- a/docs/middleware.md +++ b/docs/middleware.md @@ -7,7 +7,7 @@ Middleware is registered via the middleware decorator, and can either be added a ## Examples ```python -app = Sanic('__name__') +app = Sanic(__name__) @app.middleware async def halt_request(request): @@ -26,4 +26,4 @@ async def handler(request): return text('I would like to speak now please') app.run(host="0.0.0.0", port=8000) -``` \ No newline at end of file +```