[Python-checkins] gh-93738: Documentation C syntax (:c:data:`0` -> ``0``) (GH-97771)

miss-islington webhook-mailer at python.org
Mon Oct 3 21:55:19 EDT 2022


https://github.com/python/cpython/commit/e34b00cc3ea9d4fdcb146050336ea6ce0d22cf85
commit: e34b00cc3ea9d4fdcb146050336ea6ce0d22cf85
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-10-03T18:55:04-07:00
summary:

gh-93738: Documentation C syntax (:c:data:`0` -> ``0``) (GH-97771)


:c:data:`0` -> ``0``
(cherry picked from commit 5e997cff3e1dea24241726338457611beb8882ec)

Co-authored-by: Adam Turner <9087854+AA-Turner at users.noreply.github.com>

files:
M Doc/c-api/exceptions.rst

diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst
index 02ec1da1c340..df73f23d2de2 100644
--- a/Doc/c-api/exceptions.rst
+++ b/Doc/c-api/exceptions.rst
@@ -189,7 +189,7 @@ For convenience, some of these functions will always return a
 .. c:function:: PyObject* PyErr_SetFromWindowsErr(int ierr)
 
    This is a convenience function to raise :exc:`WindowsError`. If called with
-   *ierr* of :c:data:`0`, the error code returned by a call to :c:func:`GetLastError`
+   *ierr* of ``0``, the error code returned by a call to :c:func:`GetLastError`
    is used instead.  It calls the Win32 function :c:func:`FormatMessage` to retrieve
    the Windows description of error code given by *ierr* or :c:func:`GetLastError`,
    then it constructs a tuple object whose first item is the *ierr* value and whose



More information about the Python-checkins mailing list