From c535dd240b491d82ca66042c283cc3985a370fa3 Mon Sep 17 00:00:00 2001 From: lefp <70862148+lefp@users.noreply.github.com> Date: Sun, 15 Oct 2023 01:07:05 -0400 Subject: [PATCH] docs: specify return value on success --- Doc/c-api/bytes.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Doc/c-api/bytes.rst b/Doc/c-api/bytes.rst index 61a68f52773882..4790d3b2da4375 100644 --- a/Doc/c-api/bytes.rst +++ b/Doc/c-api/bytes.rst @@ -155,6 +155,7 @@ called with a non-bytes parameter. Return the null-terminated contents of the object *obj* through the output variables *buffer* and *length*. + Returns ``0`` on success. If *length* is ``NULL``, the bytes object may not contain embedded null bytes;