From 45c5a2bcbf5c37ea1155b17ce43547cea1289686 Mon Sep 17 00:00:00 2001 From: Michael Seifert Date: Sun, 27 Aug 2017 19:46:36 +0200 Subject: MAINT: Fix a comment regarding the formula for arange length [skip ci] --- numpy/core/src/multiarray/ctors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy') 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) -- cgit v1.2.1