Skip to content
This repository has been archived by the owner on Jan 22, 2020. It is now read-only.

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
nvllsvm committed Apr 7, 2018
1 parent 30d0b4d commit 5226468
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Example
def concatenate(letters):
return ''.join(letters)
return '-'.join(letters)
with Pool(concatenate, 2) as pool:
Expand All @@ -30,7 +30,7 @@ Example
::

('bdf', 'ace')
('b-d-f', 'a-c-e')

.. |Version| image:: https://img.shields.io/pypi/v/consumers.svg?
:target: https://pypi.org/project/consumers/
Expand Down
2 changes: 1 addition & 1 deletion docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Consumers can return data the end of execution.

.. code-block:: none
('bc', 'adef')
('b-c', 'a-d-e-f')
Multiple Data
Expand Down
2 changes: 1 addition & 1 deletion examples/concatenate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


def concatenate(letters):
return ''.join(letters)
return '-'.join(letters)


with Pool(concatenate, quantity=2) as pool:
Expand Down

0 comments on commit 5226468

Please sign in to comment.