diff --git a/docs/advanced/pycpp/numpy.rst b/docs/advanced/pycpp/numpy.rst index acbefd922..d89e4beae 100644 --- a/docs/advanced/pycpp/numpy.rst +++ b/docs/advanced/pycpp/numpy.rst @@ -155,7 +155,7 @@ NumPy array containing double precision values. When it is invoked with a different type (e.g. an integer or a list of integers), the binding code will attempt to cast the input into a NumPy array of the requested type. Note that this feature requires the -:file:``pybind11/numpy.h`` header to be included. +:file:`pybind11/numpy.h` header to be included. Data in NumPy arrays is not guaranteed to packed in a dense manner; furthermore, entries can be separated by arbitrary column and row strides. diff --git a/tests/constructor_stats.h b/tests/constructor_stats.h index de5c133c1..f66ff71df 100644 --- a/tests/constructor_stats.h +++ b/tests/constructor_stats.h @@ -24,7 +24,7 @@ function calls to constructors: ... } -You can find various examples of these in several of the existing example .cpp files. (Of course +You can find various examples of these in several of the existing testing .cpp files. (Of course you don't need to add any of the above constructors/operators that you don't actually have, except for the destructor). @@ -41,7 +41,7 @@ value constructor) for all of the above methods which will be included in the ou For testing, each of these also keeps track the created instances and allows you to check how many of the various constructors have been invoked from the Python side via code such as: - from example import ConstructorStats + from pybind11_tests import ConstructorStats cstats = ConstructorStats.get(MyClass) print(cstats.alive()) print(cstats.default_constructions) diff --git a/tests/pybind11_tests.cpp b/tests/pybind11_tests.cpp index 9c593eee1..4646ce1e3 100644 --- a/tests/pybind11_tests.cpp +++ b/tests/pybind11_tests.cpp @@ -32,7 +32,7 @@ void bind_ConstructorStats(py::module &m) { } PYBIND11_PLUGIN(pybind11_tests) { - py::module m("pybind11_tests", "pybind example plugin"); + py::module m("pybind11_tests", "pybind testing plugin"); bind_ConstructorStats(m);