Skip to content

Commit

Permalink
Merge pull request #11 from MarshalX/patch-1
Browse files Browse the repository at this point in the history
Fix decoding example in docstring
  • Loading branch information
sg495 authored Dec 18, 2023
2 parents 93b36f3 + 2c957cb commit 0bd2464
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 0bd2464

Please sign in to comment.