Przeglądaj źródła

Update calling.rst

Fixed typo variable on example code of Connections.
Conflicts:
	docs/userguide/calling.rst

Conflicts:
	docs/userguide/calling.rst
Kouhei Maeda 11 lat temu
rodzic
commit
1e88e4b98a
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      docs/userguide/calling.rst

+ 1 - 1
docs/userguide/calling.rst

@@ -442,7 +442,7 @@ Though this particular example is much better expressed as a group:
     >>> from celery import group
 
     >>> numbers = [(2, 2), (4, 4), (8, 8), (16, 16)]
-    >>> res = group(add.subtask(n) for i in numbers).apply_async()
+    >>> res = group(add.s(i) for i in numbers).apply_async()
 
     >>> res.get()
     [4, 8, 16, 32]