]> granicus.if.org Git - python/commitdiff
bpo-33952: Fix typo in str.upper() documentation (GH-7898) (GH-7904)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 25 Jun 2018 10:44:16 +0000 (03:44 -0700)
committerTal Einat <taleinat+github@gmail.com>
Mon, 25 Jun 2018 10:44:16 +0000 (13:44 +0300)
(cherry picked from commit 4a6e746079441d18c30e3c4d014f106faaf7792f)

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

index 239fd5717af06635ab45d12b93fdf37f64366957..19c7f4127cffc21aceb9ee82ae24b74a3e798019 100644 (file)
@@ -2042,7 +2042,7 @@ expression support in the :mod:`re` module).
 .. 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).