Skip to content

Commit f197571

Browse files
committed
fix typo in documentation reported by @LiuYinCarl
1 parent e9e163e commit f197571

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/ownership.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Consider the following problematic example to see what can go wrong:
4242
nb::class_<Data>(m, "Data");
4343
4444
// KABOOM, calling this function will crash the Python interpreter
45-
m.def("get_data", &get_data());
45+
m.def("get_data", &get_data);
4646
}
4747
4848
The bound function ``my_ext.get_data()`` returns a Python object of type

0 commit comments

Comments
 (0)