diff --git a/doc/v2/manage_new_object.html b/doc/v2/manage_new_object.html
index 879cdc5e..8630dfa5 100644
--- a/doc/v2/manage_new_object.html
+++ b/doc/v2/manage_new_object.html
@@ -105,7 +105,7 @@ using namespace boost::python;
BOOST_PYTHON_MODULE_INIT(my_module)
{
module("my_module")
- .def("make_foo", make_foo)
+ .def("make_foo", make_foo, return_value_policy<manage_new_object>)
.add(
class_<Foo>()
.def("get_x", &Foo::get_x)