Skip to content

Commit

Permalink
Fixed typo in api_core.rst (#862)
Browse files Browse the repository at this point in the history
  • Loading branch information
vfdev-5 authored Jan 20, 2025
1 parent 8badd40 commit 9a47b44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api_core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ With reference counting
PyObject* list = ...;
Py_ssize_t index = ...;
nb::object o = nb::borrow(PyList_GetItem(obj, index));
nb::object o = nb::borrow(PyList_GetItem(list, index));
Using :cpp:func:`steal()` in this setting is incorrect and would lead to a
reference underflow.
Expand Down

0 comments on commit 9a47b44

Please sign in to comment.