Browse Source

Fixes typo

Ask Solem 11 năm trước cách đây
mục cha
commit
0fbab3ab3f
1 tập tin đã thay đổi với 2 bổ sung3 xóa
  1. 2 3
      docs/userguide/tasks.rst

+ 2 - 3
docs/userguide/tasks.rst

@@ -997,12 +997,11 @@ will do roughly this behind the scenes:
 
 .. code-block:: python
 
-    @app.task
-    class AddTask(Task):
+    class _AddTask(app.Task):
 
         def run(self, x, y):
             return x + y
-    add = registry.tasks[AddTask.name]
+    add = app.tasks[_AddTask.name]
 
 
 Instantiation