]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-93738: Documentation C syntax (:c:data:`0` -> ``0``) (#97771)
authorAdam Turner <9087854+AA-Turner@users.noreply.github.com>
Tue, 4 Oct 2022 01:46:30 +0000 (02:46 +0100)
committerGitHub <noreply@github.com>
Tue, 4 Oct 2022 01:46:30 +0000 (03:46 +0200)
:c:data:`0` -> ``0``

Doc/c-api/exceptions.rst

index 02ec1da1c340079cd0bcd2180d549053a1533a15..df73f23d2de2b7e478497c5c6b161e2a9a49fb80 100644 (file)
@@ -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