Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
5b43ac42
Commit
5b43ac42
authored
Jan 19, 2021
by
Henry Fredrick Schreiner
Browse files
docs: fix missing line from #2310
parent
2db0264a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
include/pybind11/iostream.h
include/pybind11/iostream.h
+2
-4
No files found.
include/pybind11/iostream.h
View file @
5b43ac42
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment