]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Fix example in docs.
authorBen Darnell <ben@bendarnell.com>
Wed, 16 Jul 2014 02:47:21 +0000 (22:47 -0400)
committerBen Darnell <ben@bendarnell.com>
Wed, 16 Jul 2014 02:47:21 +0000 (22:47 -0400)
docs/guide/structure.rst

index 12d771a5775882351098fd8b011be398b4f504e1..646c6cb0b25ae0bb150a3ec987da561e9004ca04 100644 (file)
@@ -329,7 +329,7 @@ For comparison, here is the same example using a coroutine::
         @tornado.gen.coroutine
         def get(self):
             http = tornado.httpclient.AsyncHTTPClient()
-            yield http.fetch("http://friendfeed-api.com/v2/feed/bret")
+            response = yield http.fetch("http://friendfeed-api.com/v2/feed/bret")
             json = tornado.escape.json_decode(response.body)
             self.write("Fetched " + str(len(json["entries"])) + " entries "
                        "from the FriendFeed API")