]> granicus.if.org Git - python/commitdiff
Fix the docstrings of the capitalize method.
authorSenthil Kumaran <orsenthil@gmail.com>
Mon, 5 Jul 2010 12:00:56 +0000 (12:00 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Mon, 5 Jul 2010 12:00:56 +0000 (12:00 +0000)
Objects/bytes_methods.c
Objects/unicodeobject.c

index 215a1fac0ffee33023b12efed4ae8d7337ed467b..b41b3d9b80be7bcee762c77fc96203785bd8350e 100644 (file)
@@ -332,7 +332,8 @@ _Py_bytes_title(char *result, char *s, Py_ssize_t len)
 PyDoc_STRVAR_shared(_Py_capitalize__doc__,
 "B.capitalize() -> copy of B\n\
 \n\
-Return a copy of B with only its first character capitalized (ASCII).");
+Return a copy of B with only its first character capitalized (ASCII)\n\
+and the rest lower-cased.");
 
 void
 _Py_bytes_capitalize(char *result, char *s, Py_ssize_t len)
index dba3d365fc352b324c0618cbaf23b87a82eecf50..6270e9bffcfbb6619d24b343ba7844376e2ded63 100644 (file)
@@ -6705,7 +6705,7 @@ PyDoc_STRVAR(capitalize__doc__,
              "S.capitalize() -> str\n\
 \n\
 Return a capitalized version of S, i.e. make the first character\n\
-have upper case.");
+have upper case and the rest lower case.");
 
 static PyObject*
 unicode_capitalize(PyUnicodeObject *self)