Skip to content

Commit 9c0aa69

Browse files
authored
Pointing out namespace in docs (#2874)
1 parent e2e819b commit 9c0aa69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/advanced/functions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ implied transfer of ownership, i.e.:
5050

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

0 commit comments

Comments
 (0)