Commit 9ec1128c by Nimrod Committed by GitHub

Fix typo in doc (#3628)

parent 3a1eddab
...@@ -120,7 +120,7 @@ targeted arguments can be passed through the :class:`cpp_function` constructor: ...@@ -120,7 +120,7 @@ targeted arguments can be passed through the :class:`cpp_function` constructor:
.. code-block:: cpp .. code-block:: cpp
class_<MyClass>(m, "MyClass") class_<MyClass>(m, "MyClass")
.def_property("data" .def_property("data",
py::cpp_function(&MyClass::getData, py::return_value_policy::copy), py::cpp_function(&MyClass::getData, py::return_value_policy::copy),
py::cpp_function(&MyClass::setData) py::cpp_function(&MyClass::setData)
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment