]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typos in C API documentation (GH-149588)
authorpengyu lee <lipengyu@kylinos.cn>
Mon, 11 May 2026 08:28:19 +0000 (16:28 +0800)
committerGitHub <noreply@github.com>
Mon, 11 May 2026 08:28:19 +0000 (10:28 +0200)
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>`.