diff options
author | Henry Fredrick Schreiner <henry.fredrick.schreiner@cern.ch> | 2021-01-19 19:56:22 -0500 |
---|---|---|
committer | Henry Fredrick Schreiner <henry.fredrick.schreiner@cern.ch> | 2021-01-19 19:56:22 -0500 |
commit | 5b43ac42a0553cb603ead1cd62e364c04e854f28 (patch) | |
tree | 13042c30ce823bc0798594efeabcc12e5e44c13f | |
parent | 2db0264acaa9ec914c01ae635c564ebdccae60f2 (diff) | |
download | pybind11-5b43ac42a0553cb603ead1cd62e364c04e854f28.tar.gz |
docs: fix missing line from #2310
-rw-r--r-- | include/pybind11/iostream.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/pybind11/iostream.h b/include/pybind11/iostream.h index 59d33e91..7f34bb20 100644 --- a/include/pybind11/iostream.h +++ b/include/pybind11/iostream.h @@ -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 { |