Skip to content

Commit 764b856

Browse files
committed
Fix README
1 parent 920f2ff commit 764b856

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,10 @@ Borrow variant
253253
To ease migration of C extensions to the new C API, a variant is provided
254254
to return borrowed references rather than strong references::
255255

256-
// Similar to "Py_INCREF(ob); return ob;"
256+
// Similar to "Py_DECREF(ob); return ob;"
257257
PyObject* _Py_StealRef(PyObject *ob);
258258

259-
// Similar to "Py_XINCREF(ob); return ob;"
259+
// Similar to "Py_XDECREF(ob); return ob;"
260260
PyObject* _Py_XStealRef(PyObject *ob);
261261

262262
// PyThreadState_GetFrame(). Not available on PyPy.
@@ -329,7 +329,7 @@ Links
329329
* numpy has its own compatibility layer, ``npy_pycompat.h`` and
330330
``npy_3kcompat.h`` header files. It supports more C compilers than
331331
pythoncapi_compat.h: it supports ``__STRICT_ANSI__`` (ISO C90) for example.
332-
Reject `PR 18713: MAINT: Use pythoncapi_compat.h in npy_3kcompat.h
332+
Rejected `PR 18713: MAINT: Use pythoncapi_compat.h in npy_3kcompat.h
333333
<https://github.com/numpy/numpy/pull/18713>`_ (when it was rejected, numpy
334334
still had code for compatibility with Python 2.7).
335335

0 commit comments

Comments
 (0)