]> granicus.if.org Git - python/commitdiff
Fix doc of an internal function: unicode_write_cstr()
authorVictor Stinner <victor.stinner@haypocalc.com>
Wed, 22 Feb 2012 20:22:20 +0000 (21:22 +0100)
committerVictor Stinner <victor.stinner@haypocalc.com>
Wed, 22 Feb 2012 20:22:20 +0000 (21:22 +0100)
Objects/unicodeobject.c

index ab4559f3b02d94b7d396d5e12fc1793d2254ddbe..01748be3e8f8b9eeb79ed5638f074d6382e0dc96 100644 (file)
@@ -1640,8 +1640,9 @@ unicode_putchar(PyObject **p_unicode, Py_ssize_t *pos,
 /* Copy a ASCII or latin1 char* string into a Python Unicode string.
    Return the length of the input string.
 
-   WARNING: Don't copy the terminating null character and don't check the
-   maximum character (may write a latin1 character in an ASCII string). */
+   WARNING: The function doesn't copy the terminating null character and
+   doesn't check the maximum character (may write a latin1 character in an
+   ASCII string). */
 static Py_ssize_t
 unicode_write_cstr(PyObject *unicode, Py_ssize_t index, const char *str)
 {