Bläddra i källkod

Fixed typo where guide was attempting to define a class object using the 'def' keyword.

mklauber 13 år sedan
förälder
incheckning
1aa132e68a
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      docs/userguide/tasks.rst

+ 1 - 1
docs/userguide/tasks.rst

@@ -734,7 +734,7 @@ will do roughly this behind the scenes:
 .. code-block:: python
 
     @task
-    def AddTask(Task):
+    class AddTask(Task):
 
         def run(self, x, y):
             return x + y