浏览代码

Update calling.rst

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

Conflicts:
	docs/userguide/calling.rst
Kouhei Maeda 11 年之前
父节点
当前提交
1e88e4b98a
共有 1 个文件被更改,包括 1 次插入1 次删除
  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]