Skip to content

Commit 5b43ac4

Browse files
committed
docs: fix missing line from #2310
1 parent 2db0264 commit 5b43ac4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

include/pybind11/iostream.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,8 @@ PYBIND11_NAMESPACE_END(detail)
104104
.. code-block:: cpp
105105
106106
{
107-
py::scoped_ostream_redirect output{
108-
std::cerr,
109-
py::module::import("sys").attr("stderr")
110-
};
107+
py::scoped_ostream_redirect output{std::cerr, py::module::import("sys").attr("stderr")};
108+
std::cout << "Hello, World!";
111109
}
112110
\endrst */
113111
class scoped_ostream_redirect {

0 commit comments

Comments
 (0)