Browse Source

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

mklauber 13 years ago
parent
commit
1aa132e68a
1 changed files with 1 additions and 1 deletions
  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