From 965e53a9deb1c7f02c68dee119eae94c3be8af15 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Wirtel?= Date: Wed, 11 Sep 2019 19:36:00 +0200 Subject: [PATCH] [3.8] bpo-37698: Update doc of PyBuffer_ToContiguous (GH-14992) (GH-15999) https://bugs.python.org/issue37698 (cherry picked from commit 15f5a7527b87e11fcf23069c147fd4cb7d42cfb0) Co-authored-by: Hai Shi --- Doc/c-api/buffer.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/c-api/buffer.rst b/Doc/c-api/buffer.rst index 06941e1004..67140511ef 100644 --- a/Doc/c-api/buffer.rst +++ b/Doc/c-api/buffer.rst @@ -491,8 +491,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*. -- 2.50.1