Преглед на файлове

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

mklauber преди 13 години
родител
ревизия
1aa132e68a
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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