Skip to content

Commit

Permalink
README: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dcbaker committed Aug 31, 2016
1 parent 1c4581a commit 8285432
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ managers are recommended to ensure that each container is closed properly.
Basic Usage
###########

A simple use looks like this
A simple example looks like this

.. code-block:: python
Expand All @@ -60,12 +60,12 @@ corrected.

It is possible to write any value that the encoder (json.JSONEncoder by
default) can encode, so iterating over lists or dictionaries to write them in
is unnecessary
is unnecessary:

.. code-block:: python
mylist = list(range(10))
mydict = {a, b, for a in range(10), for b in 'abcdefghij'}
mydict = {a: b for a in range(10) for b in 'abcdefghij'}
with jsonstreams.Stream('foo', 'object') as s:
s.write('list', mylist)
Expand Down

0 comments on commit 8285432

Please sign in to comment.