Browse Source

Update canvas.rst

Fix order of partial arguments
Seungha Kim 9 years ago
parent
commit
359c7cfb6f
1 changed files with 3 additions and 3 deletions
  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
 ------------