Skip to content

Commit

Permalink
Fix doc of an internal function: unicode_write_cstr()
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Stinner committed Feb 22, 2012
1 parent 6db1c40 commit b429d3b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Objects/unicodeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit b429d3b

Please sign in to comment.