summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarat Sharafutdinov <decaz89@gmail.com>2018-11-04 19:14:11 +0300
committerINADA Naoki <methane@users.noreply.github.com>2018-11-05 01:14:11 +0900
commitb077a21f89881df8af56a05cc41d4bdebea19105 (patch)
treebbb0e3aa0f5d79c7f3ec82939c63f7f9dd57926b
parent205f7d39b26d7441f3cce86e93449e50bd71a6fa (diff)
downloadmsgpack-python-b077a21f89881df8af56a05cc41d4bdebea19105.tar.gz
Fix stream unpacking example in README (#317)
-rw-r--r--README.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.rst b/README.rst
index 8925a65..94a4bb2 100644
--- a/README.rst
+++ b/README.rst
@@ -142,7 +142,7 @@ stream (or from bytes provided through its ``feed`` method).
buf = BytesIO()
for i in range(100):
- buf.write(msgpack.packb(range(i), use_bin_type=True))
+ buf.write(msgpack.packb(i, use_bin_type=True))
buf.seek(0)