mirror of
https://github.com/python/cpython.git
synced 2025-12-09 10:37:17 +00:00
Fix typo: PyMem_Alloc => PyMem_Malloc
This commit is contained in:
parent
7a5567a92c
commit
22fabe218d
1 changed files with 1 additions and 1 deletions
|
|
@ -1052,7 +1052,7 @@ PyAPI_FUNC(Py_ssize_t) PyUnicode_AsWideChar(
|
||||||
always ends with a nul character. If size is not NULL, write the number of
|
always ends with a nul character. If size is not NULL, write the number of
|
||||||
wide characters (excluding the null character) into *size.
|
wide characters (excluding the null character) into *size.
|
||||||
|
|
||||||
Returns a buffer allocated by PyMem_Alloc() (use PyMem_Free() to free it)
|
Returns a buffer allocated by PyMem_Malloc() (use PyMem_Free() to free it)
|
||||||
on success. On error, returns NULL, *size is undefined and raises a
|
on success. On error, returns NULL, *size is undefined and raises a
|
||||||
MemoryError. */
|
MemoryError. */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue