From 56e491783fc159be0c4ad4d0ea2afc6eb490e7df Mon Sep 17 00:00:00 2001 From: Colin Goutte Date: Thu, 25 Oct 2018 23:59:47 +0200 Subject: [PATCH] not using async def raise a SyntaxError --- docs/routing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/routing.md b/docs/routing.md index 1ed5b93..7aad036 100644 --- a/docs/routing.md +++ b/docs/routing.md @@ -136,7 +136,7 @@ class YourCacheEngine(CacheEngine): @app.route('/', cache=YourCacheEngine(skip_hooks=True)) -def home(): +async def home(): return Response(b'Hello World') ```