diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-06-25 10:44:16 (GMT) |
---|---|---|
committer | Tal Einat <taleinat+github@gmail.com> | 2018-06-25 10:44:16 (GMT) |
commit | ac5a6e35ef4a73846136804fff924760ec67ebbd (patch) | |
tree | a34f0ac850dd28adf6fcde2806c87ef49724f8bf | |
parent | 73848e028de58e7fb2b38bddb1638ca2323561a9 (diff) | |
download | cpython-ac5a6e35ef4a73846136804fff924760ec67ebbd.zip cpython-ac5a6e35ef4a73846136804fff924760ec67ebbd.tar.gz cpython-ac5a6e35ef4a73846136804fff924760ec67ebbd.tar.bz2 |
bpo-33952: Fix typo in str.upper() documentation (GH-7898) (GH-7904)
(cherry picked from commit 4a6e746079441d18c30e3c4d014f106faaf7792f)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
-rw-r--r-- | Doc/library/stdtypes.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 239fd57..19c7f41 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -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). |