Minor typo

This commit is contained in:
Tomas Babej 2018-01-28 10:16:27 -05:00 committed by Jason Rhinelander
parent 431fc0e198
commit 01fada7674

View File

@ -438,7 +438,7 @@ To explicitly enable or disable this behaviour, using the
py::class_<Cat>(m, "Cat").def(py::init<>());
m.def("bark", [](Dog *dog) -> std::string {
if (dog) return "woof!"; /* Called with a Dog instance */
else return "(no dog)"; /* Called with None, d == nullptr */
else return "(no dog)"; /* Called with None, dog == nullptr */
}, py::arg("dog").none(true));
m.def("meow", [](Cat *cat) -> std::string {
// Can't be called with None argument