浏览代码

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):
     def add(x, y):
         return 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
 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).
 message broker you want to use. Here using RabbitMQ (also the default option).