mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 13:15:12 +00:00
docs: fix missing line from #2310
This commit is contained in:
parent
2db0264aca
commit
5b43ac42a0
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user