Skip to content

Commit

Permalink
docs: fix missing line from pybind#2310
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii committed Jan 20, 2021
1 parent 2db0264 commit 5b43ac4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions include/pybind11/iostream.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5b43ac4

Please sign in to comment.