summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-10-04 01:55:08 (GMT)
committerGitHub <noreply@github.com>2022-10-04 01:55:08 (GMT)
commit82ce586f10257c3176c1e92745f6e19f3787c9f1 (patch)
treeae7c965a65c9ed10db3e820b03f7bf8f675251fc /Doc/c-api
parent656983741faae983c7a8e6367423c24f2e7d15bc (diff)
downloadcpython-82ce586f10257c3176c1e92745f6e19f3787c9f1.zip
cpython-82ce586f10257c3176c1e92745f6e19f3787c9f1.tar.gz
cpython-82ce586f10257c3176c1e92745f6e19f3787c9f1.tar.bz2
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@users.noreply.github.com>
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/exceptions.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst
index fc90fa2..40759f7 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