Skip to content

Commit 4a6e746

Browse files
andresdelfinotaleinat
authored andcommitted
bpo-33952: Fix typo in str.upper() documentation (GH-7898)
1 parent a8ddf85 commit 4a6e746

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)