Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhantgoel committed Sep 25, 2019
1 parent efb8eaf commit 03d45ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ Usage
>>> parser.register('file', FileTarget('/tmp/file.txt'))
>>> parser.register('discard-me', NullTarget())
>>>
>>> parser.data_received(chunk)
>>> for chunk in request.body:
... parser.data_received(chunk)
...
>>>
Documentation
-------------
Expand Down
5 changes: 4 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ Usage
>>> parser.register('file', FileTarget('/tmp/file.txt'))
>>> parser.register('discard-me', NullTarget())
>>>
>>> parser.data_received(chunk)
>>> for chunk in request.body:
... parser.data_received(chunk)
...
>>>
Usage can broadly be split into three stages.

Expand Down

0 comments on commit 03d45ef

Please sign in to comment.