[3.8] bpo-37698: Update doc of PyBuffer_ToContiguous (GH-14992) (GH-15999)

https://bugs.python.org/issue37698
(cherry picked from commit 15f5a7527b)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
This commit is contained in:
Stéphane Wirtel 2019-09-11 19:36:00 +02:00 committed by GitHub
parent d47993664e
commit 965e53a9de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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*.