Rename PYBIND11_DTYPE to PYBIND11_NUMPY_DTYPE
diff --git a/docs/advanced.rst b/docs/advanced.rst
index dca4a29..5190e0b 100644
--- a/docs/advanced.rst
+++ b/docs/advanced.rst
@@ -1362,7 +1362,7 @@
======================
In order for ``py::array_t`` to work with structured (record) types, we first need
-to register the memory layout of the type. This can be done via ``PYBIND11_DTYPE``
+to register the memory layout of the type. This can be done via ``PYBIND11_NUMPY_DTYPE``
macro which expects the type followed by field names:
.. code-block:: cpp
@@ -1377,8 +1377,8 @@
A a;
};
- PYBIND11_DTYPE(A, x, y);
- PYBIND11_DTYPE(B, z, a);
+ PYBIND11_NUMPY_DTYPE(A, x, y);
+ PYBIND11_NUMPY_DTYPE(B, z, a);
/* now both A and B can be used as template arguments to py::array_t */