mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 06:35:12 +00:00
Fix typo in doc (#3628)
This commit is contained in:
parent
3a1eddab54
commit
9ec1128c7a
@ -120,7 +120,7 @@ targeted arguments can be passed through the :class:`cpp_function` constructor:
|
||||
.. code-block:: cpp
|
||||
|
||||
class_<MyClass>(m, "MyClass")
|
||||
.def_property("data"
|
||||
.def_property("data",
|
||||
py::cpp_function(&MyClass::getData, py::return_value_policy::copy),
|
||||
py::cpp_function(&MyClass::setData)
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user