Skip to content

Commit 324f0a0

Browse files
andresdelfinomiss-islington
authored andcommitted
bpo-33952: Fix typo in str.upper() documentation (pythonGH-7898)
(cherry picked from commit 4a6e746) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
1 parent 66d77d8 commit 324f0a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Doc/library/stdtypes.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2051,7 +2051,7 @@ expression support in the :mod:`re` module).
20512051
.. method:: str.upper()
20522052

20532053
Return a copy of the string with all the cased characters [4]_ converted to
2054-
uppercase. Note that ``str.upper().isupper()`` might be ``False`` if ``s``
2054+
uppercase. Note that ``s.upper().isupper()`` might be ``False`` if ``s``
20552055
contains uncased characters or if the Unicode category of the resulting
20562056
character(s) is not "Lu" (Letter, uppercase), but e.g. "Lt" (Letter,
20572057
titlecase).

0 commit comments

Comments
 (0)