]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix a typo in `Py_DECREF` comment (#128387)
authorJustine Krejcha <justine@justinekrejcha.com>
Tue, 25 Feb 2025 10:10:40 +0000 (02:10 -0800)
committerGitHub <noreply@github.com>
Tue, 25 Feb 2025 10:10:40 +0000 (11:10 +0100)
Include/refcount.h

index d98b2dfcf37202b7bf6503668d2101b8ce8a5f0f..dbc69ee02b017d8301c207e4e38c4f67c2afd96e 100644 (file)
@@ -313,7 +313,7 @@ PyAPI_FUNC(void) _Py_MergeZeroLocalRefcount(PyObject *);
 // Stable ABI implements Py_DECREF() as a function call on limited C API
 // version 3.12 and newer, and on Python built in debug mode. _Py_DecRef() was
 // added to Python 3.10.0a7, use Py_DecRef() on older Python versions.
-// Py_DecRef() accepts NULL whereas _Py_IncRef() doesn't.
+// Py_DecRef() accepts NULL whereas _Py_DecRef() doesn't.
 static inline void Py_DECREF(PyObject *op) {
 #  if Py_LIMITED_API+0 >= 0x030a00A7
     _Py_DecRef(op);