Skip to content

Commit 7160304

Browse files
committed
Fixing very minor oversights discovered while proof-reading the initial version for the first time on GitHub. Pushing directly. Not worth a PR.
1 parent 0b63dd0 commit 7160304

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README_smart_holder.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ disadvantage of having to use the ``PYBIND11_SMART_HOLDER_TYPE_CASTERS`` macro.
8585
Conservative mode
8686
-----------------
8787

88-
Here is a minimal example for wrapping a C++ type with the `smart_holder`
89-
type as the holder:
88+
Here is a minimal example for wrapping a C++ type with ``py::smart_holder`` as
89+
holder:
9090

9191
.. code-block:: cpp
9292
@@ -106,7 +106,7 @@ There are three small differences compared to traditional pybind11:
106106
- ``#include <pybind11/smart_holder.h>`` is used instead of
107107
``#include <pybind11/pybind11.h>``.
108108

109-
- ``py::classh`` is used instead of `py::class_`.
109+
- ``py::classh`` is used instead of ``py::class_``.
110110

111111
- The ``PYBIND11_SMART_HOLDER_TYPE_CASTERS(Foo)`` macro is needed.
112112

@@ -183,7 +183,7 @@ GitHub testing of PRs against the smart_holder branch
183183

184184
PRs against the smart_holder branch need to be tested in both
185185
modes (conservative, progressive), with the only difference that
186-
`PYBIND11_USE_SMART_HOLDER_AS_DEFAULT` is defined for progressive mode
186+
``PYBIND11_USE_SMART_HOLDER_AS_DEFAULT`` is defined for progressive mode
187187
testing. Currently this is handled simply by creating a secondary PR with a
188188
one-line change in ``include/pybind11/detail/smart_holder_sfinae_hooks_only.h``
189189
(as in e.g. `PR #2879 <https://github.com/pybind/pybind11/pull/2879>`_). It

0 commit comments

Comments
 (0)