Quellcode durchsuchen

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

mklauber vor 13 Jahren
Ursprung
Commit
1aa132e68a
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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