summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorHugo van Kemenade <1324225+hugovk@users.noreply.github.com>2024-05-26 08:15:57 (GMT)
committerGitHub <noreply@github.com>2024-05-26 08:15:57 (GMT)
commit7f86c769db4a50f54cf5312610da728cfc19fc6d (patch)
tree49490d3797971aaee2a2b2166cdee8a1ad6657ad /Doc/c-api
parentd4e382ba31735846c00a1d0ecd74aab36347a849 (diff)
downloadcpython-7f86c769db4a50f54cf5312610da728cfc19fc6d.zip
cpython-7f86c769db4a50f54cf5312610da728cfc19fc6d.tar.gz
cpython-7f86c769db4a50f54cf5312610da728cfc19fc6d.tar.bz2
[3.12] docs: fix a few typos identified by codespell (GH-119516) (#119571)
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/weakref.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/weakref.rst b/Doc/c-api/weakref.rst
index f465076..c0bfab7 100644
--- a/Doc/c-api/weakref.rst
+++ b/Doc/c-api/weakref.rst
@@ -35,7 +35,7 @@ as much as it can.
callable object that receives notification when *ob* is garbage collected; it
should accept a single parameter, which will be the weak reference object
itself. *callback* may also be ``None`` or ``NULL``. If *ob* is not a
- weakly referencable object, or if *callback* is not callable, ``None``, or
+ weakly referenceable object, or if *callback* is not callable, ``None``, or
``NULL``, this will return ``NULL`` and raise :exc:`TypeError`.
@@ -47,7 +47,7 @@ as much as it can.
be a callable object that receives notification when *ob* is garbage
collected; it should accept a single parameter, which will be the weak
reference object itself. *callback* may also be ``None`` or ``NULL``. If *ob*
- is not a weakly referencable object, or if *callback* is not callable,
+ is not a weakly referenceable object, or if *callback* is not callable,
``None``, or ``NULL``, this will return ``NULL`` and raise :exc:`TypeError`.