From 622aeda983b55c89e401b0f8098806dc19ca53ce Mon Sep 17 00:00:00 2001 From: bisho Date: Fri, 1 Mar 2024 14:10:45 +0100 Subject: [PATCH] Fix doc backend_cffi.py 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. --- zstandard/backend_cffi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zstandard/backend_cffi.py b/zstandard/backend_cffi.py index 7137542f..68f5d598 100644 --- a/zstandard/backend_cffi.py +++ b/zstandard/backend_cffi.py @@ -2633,7 +2633,7 @@ class ZstdCompressionDict(object): Dictionaries have unique integer IDs. You can retrieve this ID via: - >>> dict_id = zstandard.dictionary_id(dict_data) + >>> dict_id = dict_data.dict_id() You can obtain the raw data in the dict (useful for persisting and constructing a ``ZstdCompressionDict`` later) via ``as_bytes()``: