docs: fix missing line from #2310

parent 2db0264a
...@@ -104,10 +104,8 @@ PYBIND11_NAMESPACE_END(detail) ...@@ -104,10 +104,8 @@ PYBIND11_NAMESPACE_END(detail)
.. code-block:: cpp .. code-block:: cpp
{ {
py::scoped_ostream_redirect output{ py::scoped_ostream_redirect output{std::cerr, py::module::import("sys").attr("stderr")};
std::cerr, std::cout << "Hello, World!";
py::module::import("sys").attr("stderr")
};
} }
\endrst */ \endrst */
class scoped_ostream_redirect { class scoped_ostream_redirect {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment