Skip to content

Commit 9ec1128

Browse files
authored
Fix typo in doc (#3628)
1 parent 3a1edda commit 9ec1128

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
@@ -120,7 +120,7 @@ targeted arguments can be passed through the :class:`cpp_function` constructor:
120120
.. code-block:: cpp
121121
122122
class_<MyClass>(m, "MyClass")
123-
.def_property("data"
123+
.def_property("data",
124124
py::cpp_function(&MyClass::getData, py::return_value_policy::copy),
125125
py::cpp_function(&MyClass::setData)
126126
);

0 commit comments

Comments
 (0)