Skip to content

Commit b077a21

Browse files
decazmethane
authored andcommitted
Fix stream unpacking example in README (#317)
1 parent 205f7d3 commit b077a21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ stream (or from bytes provided through its ``feed`` method).
142142
143143
buf = BytesIO()
144144
for i in range(100):
145-
buf.write(msgpack.packb(range(i), use_bin_type=True))
145+
buf.write(msgpack.packb(i, use_bin_type=True))
146146
147147
buf.seek(0)
148148

0 commit comments

Comments
 (0)