Pārlūkot izejas kodu

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

mklauber 13 gadi atpakaļ
vecāks
revīzija
1aa132e68a
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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