From 9ec1128c7aac3d069a4ec2bd1dfc7f57c6526d1c Mon Sep 17 00:00:00 2001 From: Nimrod Date: Wed, 19 Jan 2022 15:22:42 +0800 Subject: [PATCH] Fix typo in doc (#3628) --- docs/advanced/functions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/advanced/functions.rst b/docs/advanced/functions.rst index ea9f35223..d37b8ecab 100644 --- a/docs/advanced/functions.rst +++ b/docs/advanced/functions.rst @@ -120,7 +120,7 @@ targeted arguments can be passed through the :class:`cpp_function` constructor: .. code-block:: cpp class_(m, "MyClass") - .def_property("data" + .def_property("data", py::cpp_function(&MyClass::getData, py::return_value_policy::copy), py::cpp_function(&MyClass::setData) );