From: pengyu lee Date: Mon, 11 May 2026 08:28:19 +0000 (+0800) Subject: Fix typos in C API documentation (GH-149588) X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=53c3dd9a8d79a331764147b7b7b01f9d0a8bce71;p=thirdparty%2FPython%2Fcpython.git Fix typos in C API documentation (GH-149588) --- diff --git a/Doc/c-api/slots.rst b/Doc/c-api/slots.rst index b61c2f2e17bb..84a125cb60ba 100644 --- a/Doc/c-api/slots.rst +++ b/Doc/c-api/slots.rst @@ -7,10 +7,10 @@ Definition slots To define :ref:`module objects ` and :ref:`classes ` 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 7e9894f4d692..6f18c047a24a 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 `.