summaryrefslogtreecommitdiff
path: root/numpy/doc/structured_arrays.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/doc/structured_arrays.py')
-rw-r--r--numpy/doc/structured_arrays.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/doc/structured_arrays.py b/numpy/doc/structured_arrays.py
index d8b4fc719..73bf3b317 100644
--- a/numpy/doc/structured_arrays.py
+++ b/numpy/doc/structured_arrays.py
@@ -292,7 +292,7 @@ such a view do not have field attributes::
To use the np.record dtype only, convert the dtype using the (base_class,
dtype) form described in numpy.dtype. This type of view is rarely used. ::
- >>> arr_records = arr.view(dtype(np.record, arr.dtype))
+ >>> arr_records = arr.view(dtype((np.record, arr.dtype)))
In documentation, the term 'structured array' will refer to objects of type
np.ndarray with structured dtype, 'record array' will refer to structured