浏览代码

Update canvas.rst

Fix order of partial arguments
Seungha Kim 9 年之前
父节点
当前提交
359c7cfb6f
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      docs/userguide/canvas.rst

+ 3 - 3
docs/userguide/canvas.rst

@@ -113,7 +113,7 @@ creates partials:
 
     >>> partial = add.s(2)          # incomplete signature
     >>> partial.delay(4)            # 2 + 4
-    >>> partial.apply_async((4, ))  # same
+    >>> partial.apply_async((4,))  # same
 
 - Any keyword arguments added will be merged with the kwargs in the signature,
   with the new keyword arguments taking precedence::
@@ -133,8 +133,8 @@ You can also clone signatures to create derivates:
     >>> s = add.s(2)
     proj.tasks.add(2)
 
-    >>> s.clone(args=(4, ), kwargs={'debug': True})
-    proj.tasks.add(2, 4, debug=True)
+    >>> s.clone(args=(4,), kwargs={'debug': True})
+    proj.tasks.add(4, 2, debug=True)
 
 Immutability
 ------------