From 0f1d2d929a0f7babb6d4471e987be1da34e06e34 Mon Sep 17 00:00:00 2001 From: Adam Griffiths Date: Tue, 4 Sep 2012 15:22:24 +1000 Subject: [PATCH] Fix typo in documentation (101 instead of 10). Examples demonstrate using an array with (-10, 0, 10), but this specific example has a typo that lists the last number as 101. This is reflected in the diagrams having axis labeled from -10:+10. --- numpy/core/code_generators/ufunc_docstrings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/numpy/core/code_generators/ufunc_docstrings.py b/numpy/core/code_generators/ufunc_docstrings.py index 8d7b83239025..1b666f0980f0 100644 --- a/numpy/core/code_generators/ufunc_docstrings.py +++ b/numpy/core/code_generators/ufunc_docstrings.py @@ -46,7 +46,7 @@ def add_newdoc(place, name, doc): >>> import matplotlib.pyplot as plt - >>> x = np.linspace(-10, 10, 101) + >>> x = np.linspace(-10, 10, 10) >>> plt.plot(x, np.absolute(x)) >>> plt.show()