summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2017-08-27 13:05:08 -0500
committerGitHub <noreply@github.com>2017-08-27 13:05:08 -0500
commitb57f9ec246b78b75a70d3bb35a4c17b787cd63c2 (patch)
tree10cd55da9411514947ce38fd2886973ba941c0b4 /numpy
parented805307a3a30e9990dca0a7cac73618fc6c3f21 (diff)
parent45c5a2bcbf5c37ea1155b17ce43547cea1289686 (diff)
downloadnumpy-b57f9ec246b78b75a70d3bb35a4c17b787cd63c2.tar.gz
Merge pull request #9614 from MSeifert04/correct_comment_formula
MAINT: Fix a comment regarding the formula for arange length
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/src/multiarray/ctors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/multiarray/ctors.c b/numpy/core/src/multiarray/ctors.c
index de1648230..c9b3125ae 100644
--- a/numpy/core/src/multiarray/ctors.c
+++ b/numpy/core/src/multiarray/ctors.c
@@ -3004,7 +3004,7 @@ PyArray_Arange(double start, double stop, double step, int type_num)
}
/*
- * the formula is len = (intp) ceil((start - stop) / step);
+ * the formula is len = (intp) ceil((stop - start) / step);
*/
static npy_intp
_calc_length(PyObject *start, PyObject *stop, PyObject *step, PyObject **next, int cmplx)