]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix macro expansions in critical section docs (#127226)
authorda-woods <dw-git@d-woods.co.uk>
Sun, 24 Nov 2024 17:21:02 +0000 (17:21 +0000)
committerGitHub <noreply@github.com>
Sun, 24 Nov 2024 17:21:02 +0000 (12:21 -0500)
Doc/c-api/init.rst

index 970084ce91ab69499a9efa40ab7d24ab833b6474..ba1c2852f0bd533777823b48342e17098e90618d 100644 (file)
@@ -2470,7 +2470,7 @@ code triggered by the finalizer blocks and calls :c:func:`PyEval_SaveThread`.
 
       {
           PyCriticalSection2 _py_cs2;
-          PyCriticalSection_Begin2(&_py_cs2, (PyObject*)(a), (PyObject*)(b))
+          PyCriticalSection2_Begin(&_py_cs2, (PyObject*)(a), (PyObject*)(b))
 
    In the default build, this macro expands to ``{``.
 
@@ -2482,7 +2482,7 @@ code triggered by the finalizer blocks and calls :c:func:`PyEval_SaveThread`.
 
    In the free-threaded build, this macro expands to::
 
-          PyCriticalSection_End2(&_py_cs2);
+          PyCriticalSection2_End(&_py_cs2);
       }
 
    In the default build, this macro expands to ``}``.