Переглянути джерело

Use a wording a bit closer to English (#3842)

The sentence to explain the first code sample is a bit bumpy. This change should make it a bit easier to digest, hopefully.
Peter Bittner 8 роки тому
батько
коміт
faaa949c4d
1 змінених файлів з 3 додано та 3 видалено
  1. 3 3
      docs/getting-started/first-steps-with-celery.rst

+ 3 - 3
docs/getting-started/first-steps-with-celery.rst

@@ -124,9 +124,9 @@ Let's create the file :file:`tasks.py`:
     def add(x, y):
         return x + y
 
-The first argument to :class:`~celery.app.Celery` is the name of the current module,
-this only needed so names can be automatically generated when the tasks are
-defined in the `__main__` module.
+The first argument to :class:`~celery.app.Celery` is the name of the current module.
+This is only needed to allow names to be generated automatically when the tasks are
+defined in the ``__main__`` module.
 
 The second argument is the broker keyword argument, specifying the URL of the
 message broker you want to use. Here using RabbitMQ (also the default option).