소스 검색

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
     >>> from celery import group
 
 
     >>> numbers = [(2, 2), (4, 4), (8, 8), (16, 16)]
     >>> 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()
     >>> res.get()
     [4, 8, 16, 32]
     [4, 8, 16, 32]