From 93a0dc821c6341bf9f315275341e9b71fecabd4b Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Sun, 4 Sep 2011 12:52:43 -0700 Subject: [PATCH] Fix error in docs --- tornado/gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tornado/gen.py b/tornado/gen.py index 46c726ee..b9d0584b 100644 --- a/tornado/gen.py +++ b/tornado/gen.py @@ -23,7 +23,7 @@ could be written with ``gen`` as:: @gen.engine def get(self): http_client = AsyncHTTPClient() - response = yield gen.Task(http_client.fetch("http://example.com")) + response = yield gen.Task(http_client.fetch, "http://example.com") do_something_with_response(response) self.render("template.html")