Skip to content
This repository was archived by the owner on Jun 5, 2023. It is now read-only.

Commit 4f4b282

Browse files
committed
Merge pull request #141 from msabramo/patch-1
Small tweaks to example.rst
2 parents d9c0bd4 + 1bc12b6 commit 4f4b282

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/source/example.rst

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Example
22
=========
33

4-
Let's take a real wold example of a blog where comments need to be checked for
4+
Let's take a real world example of a blog where comments need to be checked for
55
spam. When the comment is saved in the database, we create a job in the
66
queue with that comment data. Let's take a django model in this case.
77

@@ -33,7 +33,9 @@ You can convert your existing class to be compatible with pyres. All you need
3333
to do is add a :attr:`queue` attribute and define a :meth:`perform` method
3434
on the class.
3535

36-
To insert a job into the queue you need to do something like this::
36+
To insert a job into the queue you need to do something like this:
37+
38+
.. code-block:: python
3739
3840
>>> from pyres import ResQ
3941
>>> r = ResQ()
@@ -47,4 +49,3 @@ In the **scripts** folder there is an executable::
4749

4850
Just pass a comma separated list of queues the worker should poll.
4951

50-

0 commit comments

Comments
 (0)