Update npy_format_descriptor::name()
diff --git a/example/example20.py b/example/example20.py
index 85ea9ae..bb57590 100644
--- a/example/example20.py
+++ b/example/example20.py
@@ -70,3 +70,5 @@
((True, 1, 1.5), (False, 2, 3.0)),
((False, 2, 3.0), (True, 3, 4.5))], nested_dtype)
print_rec_nested(arr)
+
+assert create_rec_nested.__doc__.strip().endswith('numpy.ndarray[dtype=NestedStruct]')
diff --git a/include/pybind11/numpy.h b/include/pybind11/numpy.h
index 58d9695..030787b 100644
--- a/include/pybind11/numpy.h
+++ b/include/pybind11/numpy.h
@@ -281,7 +281,7 @@
template <typename T>
struct npy_format_descriptor<T, typename std::enable_if<is_pod_struct<T>::value>::type> {
- static PYBIND11_DESCR name() { return _("user-defined"); }
+ static PYBIND11_DESCR name() { return _("struct"); }
static object dtype() {
if (!dtype_())