Skip to content

Commit

Permalink
Pointing out namespace in docs (pybind#2874)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdegeus authored Feb 25, 2021
1 parent e2e819b commit 9c0aa69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/advanced/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ implied transfer of ownership, i.e.:

.. code-block:: cpp
m.def("get_data", &get_data, return_value_policy::reference);
m.def("get_data", &get_data, py::return_value_policy::reference);
On the other hand, this is not the right policy for many other situations,
where ignoring ownership could lead to resource leaks.
Expand Down

0 comments on commit 9c0aa69

Please sign in to comment.