]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[2.7] bpo-33952: Fix typo in str.upper() documentation (GH-7898) (GH-7905)
authorTal Einat <taleinat+github@gmail.com>
Mon, 25 Jun 2018 10:47:23 +0000 (13:47 +0300)
committerGitHub <noreply@github.com>
Mon, 25 Jun 2018 10:47:23 +0000 (13:47 +0300)
(cherry picked from commit 4a6e746079441d18c30e3c4d014f106faaf7792f)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Doc/library/stdtypes.rst

index e16bd77188fa21007c4403a18cf8111c391dcd41..ff68738abcdad6024ebb17a1a0a9f52131c57cee 100644 (file)
@@ -1381,7 +1381,7 @@ string functions based on regular expressions.
 .. method:: str.upper()
 
    Return a copy of the string with all the cased characters [4]_ converted to
-   uppercase.  Note that ``str.upper().isupper()`` might be ``False`` if ``s``
+   uppercase.  Note that ``s.upper().isupper()`` might be ``False`` if ``s``
    contains uncased characters or if the Unicode category of the resulting
    character(s) is not "Lu" (Letter, uppercase), but e.g. "Lt" (Letter, titlecase).