]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
docs: Fix python syntax error in the user guide 2459/head
authorYao <aristotll@qq.com>
Wed, 25 Jul 2018 14:55:06 +0000 (22:55 +0800)
committerGitHub <noreply@github.com>
Wed, 25 Jul 2018 14:55:06 +0000 (22:55 +0800)
docs/guide/coroutines.rst

index 09e0a943dd035b036526d249d83c84c9dce948f3..eb500da12512ea1448d91eeffcf50af8f62d713f 100644 (file)
@@ -210,7 +210,7 @@ In decorated coroutines, it is possible to ``yield`` the list or dict directly::
     @gen.coroutine
     def parallel_fetch_decorated(url1, url2):
         resp1, resp2 = yield [http_client.fetch(url1),
-                              http_client.fetch(url2)])
+                              http_client.fetch(url2)]
 
 Interleaving
 ^^^^^^^^^^^^