From b96b6adf29ab0da4743e3de4000670ebe01fb81e Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Tue, 15 Jul 2014 22:47:21 -0400 Subject: [PATCH] Fix example in docs. --- docs/guide/structure.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/structure.rst b/docs/guide/structure.rst index 12d771a57..646c6cb0b 100644 --- a/docs/guide/structure.rst +++ b/docs/guide/structure.rst @@ -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") -- 2.47.2