Sfoglia il codice sorgente

Canvas guide example fix

Alex Kiriukha 11 anni fa
parent
commit
b8b9efe672
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      docs/userguide/canvas.rst

+ 1 - 1
docs/userguide/canvas.rst

@@ -380,7 +380,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