https://github.com/python/cpython/commit/53c3dd9a8d79a331764147b7b7b01f9d0a8bce71
commit: 53c3dd9a8d79a331764147b7b7b01f9d0a8bce71
branch: main
author: pengyu lee <[email protected]>
committer: encukou <[email protected]>
date: 2026-05-11T10:28:19+02:00
summary:
Fix typos in C API documentation (GH-149588)
files:
M Doc/c-api/slots.rst
M Doc/c-api/synchronization.rst
diff --git a/Doc/c-api/slots.rst b/Doc/c-api/slots.rst
index b61c2f2e17bbc3..84a125cb60bae7 100644
--- a/Doc/c-api/slots.rst
+++ b/Doc/c-api/slots.rst
@@ -7,10 +7,10 @@ Definition slots
To define :ref:`module objects <moduleobjects>` and
:ref:`classes <creating-heap-types>` using the C API, you may use
-an array of *slots* -- essentally, key-value pairs that describe features
+an array of *slots* -- essentially, key-value pairs that describe features
of the object to create.
This decouples the data from the structures used at runtime, allowing CPython
--- and other Python C API implementations -- to update the stuctures without
+-- and other Python C API implementations -- to update the structures without
breaking backwards compatibility.
This section documents slots in general.
diff --git a/Doc/c-api/synchronization.rst b/Doc/c-api/synchronization.rst
index 7e9894f4d692d6..6f18c047a24a92 100644
--- a/Doc/c-api/synchronization.rst
+++ b/Doc/c-api/synchronization.rst
@@ -238,7 +238,7 @@ are not available.
.. c:function:: void PyCriticalSection_BeginMutex(PyCriticalSection *c,
PyMutex *m);
void PyCriticalSection2_BeginMutex(PyCriticalSection2 *c,
PyMutex *m1, PyMutex *m2);
- .. (These need to be in a separate section without a Stable ABI anotation.)
+ .. (These need to be in a separate section without a Stable ABI annotation.)
To be used only as in the macro expansions
listed :ref:`earlier in this section <critical-section-macros>`.
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]