Skip to content

Commit 2bb7846

Browse files
authored
Fix macro expansions in critical section docs (#127226)
1 parent e0ef08f commit 2bb7846

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/c-api/init.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2470,7 +2470,7 @@ code triggered by the finalizer blocks and calls :c:func:`PyEval_SaveThread`.
24702470
24712471
{
24722472
PyCriticalSection2 _py_cs2;
2473-
PyCriticalSection_Begin2(&_py_cs2, (PyObject*)(a), (PyObject*)(b))
2473+
PyCriticalSection2_Begin(&_py_cs2, (PyObject*)(a), (PyObject*)(b))
24742474
24752475
In the default build, this macro expands to ``{``.
24762476
@@ -2482,7 +2482,7 @@ code triggered by the finalizer blocks and calls :c:func:`PyEval_SaveThread`.
24822482
24832483
In the free-threaded build, this macro expands to::
24842484
2485-
PyCriticalSection_End2(&_py_cs2);
2485+
PyCriticalSection2_End(&_py_cs2);
24862486
}
24872487
24882488
In the default build, this macro expands to ``}``.

0 commit comments

Comments
 (0)