]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.10] gh-93738: Documentation C syntax (:c:type:`PyBytesObject*` -> :c:expr:`PyBytes...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 4 Oct 2022 23:41:05 +0000 (16:41 -0700)
committerGitHub <noreply@github.com>
Tue, 4 Oct 2022 23:41:05 +0000 (16:41 -0700)
:c:type:`PyBytesObject*` -> :c:expr:`PyBytesObject*`
(cherry picked from commit 9ebc50866b58a0ee2985c6540a67fee8a4a49e4d)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Doc/c-api/unicode.rst

index a7abe555a7400ae780e32fbd76a08b6b26c2f8ac..fbf51d31d56eda06c66aafa0d5290642e8eb16b1 100644 (file)
@@ -853,7 +853,7 @@ argument parsing, the ``"O&"`` converter should be used, passing
    ParseTuple converter: encode :class:`str` objects -- obtained directly or
    through the :class:`os.PathLike` interface -- to :class:`bytes` using
    :c:func:`PyUnicode_EncodeFSDefault`; :class:`bytes` objects are output as-is.
-   *result* must be a :c:type:`PyBytesObject*` which must be released when it is
+   *result* must be a :c:expr:`PyBytesObject*` which must be released when it is
    no longer used.
 
    .. versionadded:: 3.1