]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.15] Fix typos in C API documentation (GH-149588) (#149662)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 2 Jun 2026 11:31:13 +0000 (13:31 +0200)
committerGitHub <noreply@github.com>
Tue, 2 Jun 2026 11:31:13 +0000 (14:31 +0300)
Co-authored-by: pengyu lee <lipengyu@kylinos.cn>
Doc/c-api/slots.rst
Doc/c-api/synchronization.rst

index b61c2f2e17bbc3ac27a314df38e574745194ad01..84a125cb60bae7ea4a39d40451530be5cff788ad 100644 (file)
@@ -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.
index 7e9894f4d692d6b3f013a94dd0a859857afb03d0..6f18c047a24a92f189de18e80a80437ec3f0781b 100644 (file)
@@ -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>`.