Skip to content

Commit

Permalink
Fix decoding example in docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshalX authored May 20, 2023
1 parent 93b36f3 commit 2c957cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dag_cbor/decoding/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def decode(stream_or_bytes: Union[BufferedIOBase, bytes], *,
16
>>> stream = BytesIO(encoded_bytes)
>>> bytes_read_cnt = BytesReadCounter()
>>> dag_cbor.decode(allow_concat=True, callback=bytes_read_cnt)
>>> dag_cbor.decode(stream, allow_concat=True, callback=bytes_read_cnt)
{'a': 12, 'b': 'hello!'}
>>> int(bytes_read_cnt)
13
Expand Down

0 comments on commit 2c957cb

Please sign in to comment.