Skip to content

Commit a32e7a6

Browse files
bishoindygreg
authored andcommitted
docs: fix incorrect dict_id() reference
Fix documentation. The way to fetch the dict id from a dictionary is `dict_data.dict_id()`. The function `zstanard.dictionary_id()` is not defined. Closes #214.
1 parent 4110f71 commit a32e7a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zstandard/backend_cffi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2635,7 +2635,7 @@ class ZstdCompressionDict(object):
26352635
26362636
Dictionaries have unique integer IDs. You can retrieve this ID via:
26372637
2638-
>>> dict_id = zstandard.dictionary_id(dict_data)
2638+
>>> dict_id = dict_data.dict_id()
26392639
26402640
You can obtain the raw data in the dict (useful for persisting and constructing
26412641
a ``ZstdCompressionDict`` later) via ``as_bytes()``:

0 commit comments

Comments
 (0)