Skip to content

Commit 84fe118

Browse files
committed
Docs typo fixed from lintig
1 parent 3187674 commit 84fe118

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/advanced/pycpp/utilities.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ not play well with Python's standard `sys.stdout` and `sys.stderr` redirection.
3131
This can be fixed using a guard around the library function that has output:
3232

3333
.. code-block:: cpp
34+
3435
// At beginning of file
3536
#include <pybind11/iostream.h>
3637
@@ -51,6 +52,7 @@ in realtime, such as to a Jupyter notebook.
5152
A global method to redirect for the lifetime of the module:
5253

5354
.. code-block:: cpp
55+
5456
m.attr("redirect_output") = py::capsule(new py::scoped_output_redirect(...),
5557
[](void *sor) { delete static_cast<py::scoped_output_redirect *>(sor); });
5658

0 commit comments

Comments
 (0)