summaryrefslogtreecommitdiff
path: root/numpy/doc/creation.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/doc/creation.py')
-rw-r--r--numpy/doc/creation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/doc/creation.py b/numpy/doc/creation.py
index 8480858d4..babe6a4d7 100644
--- a/numpy/doc/creation.py
+++ b/numpy/doc/creation.py
@@ -58,7 +58,7 @@ examples will be given here: ::
>>> np.arange(10)
array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
- >>> np.arange(2, 10, dtype=np.float)
+ >>> np.arange(2, 10, dtype=float)
array([ 2., 3., 4., 5., 6., 7., 8., 9.])
>>> np.arange(2, 3, 0.1)
array([ 2. , 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9])