summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/buffer.rst
diff options
context:
space:
mode:
authorvyas45 <vyas45@gmail.com>2017-10-15 07:31:36 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2017-10-15 07:31:36 (GMT)
commit1b9e76ed3a055a53ca67397e928e1b408461900b (patch)
tree69090c350cba41e6b39e229afa11c3c64c09a8c6 /Doc/c-api/buffer.rst
parent28773ca7a7aa58a28e42a9eb0066acf71b5a8dc4 (diff)
downloadcpython-1b9e76ed3a055a53ca67397e928e1b408461900b.zip
cpython-1b9e76ed3a055a53ca67397e928e1b408461900b.tar.gz
cpython-1b9e76ed3a055a53ca67397e928e1b408461900b.tar.bz2
bpo-31754: Fix type of 'itemsize' in PyBuffer_FillContiguousStrides (GH-3993)
Diffstat (limited to 'Doc/c-api/buffer.rst')
-rw-r--r--Doc/c-api/buffer.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/buffer.rst b/Doc/c-api/buffer.rst
index 3d851b7..8c2de96 100644
--- a/Doc/c-api/buffer.rst
+++ b/Doc/c-api/buffer.rst
@@ -473,7 +473,7 @@ Buffer-related functions
(*order* is ``'A'``). Return ``0`` otherwise.
-.. c:function:: void PyBuffer_FillContiguousStrides(int ndim, Py_ssize_t *shape, Py_ssize_t *strides, Py_ssize_t itemsize, char order)
+.. c:function:: void PyBuffer_FillContiguousStrides(int ndims, Py_ssize_t *shape, Py_ssize_t *strides, int itemsize, char order)
Fill the *strides* array with byte-strides of a :term:`contiguous` (C-style if
*order* is ``'C'`` or Fortran-style if *order* is ``'F'``) array of the