docs: fix missing line from #2310

This commit is contained in:
Henry Fredrick Schreiner 2021-01-19 19:56:22 -05:00
parent 2db0264aca
commit 5b43ac42a0

View File

@ -104,10 +104,8 @@ PYBIND11_NAMESPACE_END(detail)
.. code-block:: cpp
{
py::scoped_ostream_redirect output{
std::cerr,
py::module::import("sys").attr("stderr")
};
py::scoped_ostream_redirect output{std::cerr, py::module::import("sys").attr("stderr")};
std::cout << "Hello, World!";
}
\endrst */
class scoped_ostream_redirect {