[Python-checkins] bpo-33952: Fix typo in str.upper() documentation (GH-7898) (GH-7903)

Tal Einat webhook-mailer at python.org
Mon Jun 25 06:42:23 EDT 2018


https://github.com/python/cpython/commit/80f1a908a87e55c318776fb8e6f8c21d8a8664ef
commit: 80f1a908a87e55c318776fb8e6f8c21d8a8664ef
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Tal Einat <taleinat+github at gmail.com>
date: 2018-06-25T13:42:20+03:00
summary:

bpo-33952: Fix typo in str.upper() documentation (GH-7898) (GH-7903)

(cherry picked from commit 4a6e746079441d18c30e3c4d014f106faaf7792f)

Co-authored-by: Andrés Delfino <adelfino at gmail.com>

files:
M Doc/library/stdtypes.rst

diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 7cab67037468..03f9159ceb5b 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -2051,7 +2051,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).



More information about the Python-checkins mailing list