summaryrefslogtreecommitdiffstats
path: root/Include/unicodeobject.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-09-06 00:00:05 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-09-06 00:00:05 (GMT)
commitd88d9836c541258a46acb153cd488de2a04b60db (patch)
treed01610c0d2d04bea90d8dcbd5b6e35e9715bd052 /Include/unicodeobject.h
parenta1bea6e10c6177813aab34a0f05c3d531ec8fd66 (diff)
downloadcpython-d88d9836c541258a46acb153cd488de2a04b60db.zip
cpython-d88d9836c541258a46acb153cd488de2a04b60db.tar.gz
cpython-d88d9836c541258a46acb153cd488de2a04b60db.tar.bz2
Fix PyUnicode_AsWideCharString() doc: size doesn't contain the null character
Fix also spelling of the null character.
Diffstat (limited to 'Include/unicodeobject.h')
-rw-r--r--Include/unicodeobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h
index 4d2a8e4..477f526 100644
--- a/Include/unicodeobject.h
+++ b/Include/unicodeobject.h
@@ -595,7 +595,7 @@ PyAPI_FUNC(Py_ssize_t) PyUnicode_AsWideChar(
/* Convert the Unicode object to a wide character string. The output string
always ends with a nul character. If size is not NULL, write the number of
- wide characters (including the nul character) into *size.
+ wide characters (excluding the null character) into *size.
Returns a buffer allocated by PyMem_Alloc() (use PyMem_Free() to free it)
on success. On error, returns NULL, *size is undefined and raises a