Explorar o código

Update canvas.rst

Fix order of partial arguments
Seungha Kim %!s(int64=9) %!d(string=hai) anos
pai
achega
359c7cfb6f
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  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
 ------------