summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2019-09-11 17:25:55 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-09-11 17:25:55 (GMT)
commit15f5a7527b87e11fcf23069c147fd4cb7d42cfb0 (patch)
tree1f32223fb4fc7d52083199bd0737a2be4358033f /Doc/c-api
parentc9bc49c5f6e26a7c958307c2ac338951a7534d9a (diff)
downloadcpython-15f5a7527b87e11fcf23069c147fd4cb7d42cfb0.zip
cpython-15f5a7527b87e11fcf23069c147fd4cb7d42cfb0.tar.gz
cpython-15f5a7527b87e11fcf23069c147fd4cb7d42cfb0.tar.bz2
bpo-37698: Update doc of PyBuffer_ToContiguous (GH-14992)
https://bugs.python.org/issue37698
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/buffer.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/buffer.rst b/Doc/c-api/buffer.rst
index fb9d47b..e660716 100644
--- a/Doc/c-api/buffer.rst
+++ b/Doc/c-api/buffer.rst
@@ -493,8 +493,8 @@ Buffer-related functions
.. c:function:: int PyBuffer_ToContiguous(void *buf, Py_buffer *src, Py_ssize_t len, char order)
Copy *len* bytes from *src* to its contiguous representation in *buf*.
- *order* can be ``'C'`` or ``'F'`` (for C-style or Fortran-style ordering).
- ``0`` is returned on success, ``-1`` on error.
+ *order* can be ``'C'`` or ``'F'`` or ``'A'`` (for C-style or Fortran-style
+ ordering or either one). ``0`` is returned on success, ``-1`` on error.
This function fails if *len* != *src->len*.