瀏覽代碼

Canvas guide example fix

Alex Kiriukha 11 年之前
父節點
當前提交
f5b9ca2292
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/userguide/canvas.rst

+ 1 - 1
docs/userguide/canvas.rst

@@ -357,7 +357,7 @@ Here's some examples:
     Chaining a group together with another task will automatically
     upgrade it to be a chord::
 
-        >>> c3 = (group(add.s(i, i) for i in xrange(10) | xsum.s()))
+        >>> c3 = (group(add.s(i, i) for i in xrange(10)) | xsum.s())
         >>> res = c3()
         >>> res.get()
         90