summaryrefslogtreecommitdiffstats
path: root/Doc/howto/unicode.rst
diff options
context:
space:
mode:
authorwulmer <wulmer@users.noreply.github.com>2023-07-23 11:56:09 (GMT)
committerGitHub <noreply@github.com>2023-07-23 11:56:09 (GMT)
commitc51f766ebb5974024d5fc138f71350a6fb30c9d9 (patch)
tree3050bd9b8e956cc53d31a8f752d5b75c604d7c79 /Doc/howto/unicode.rst
parent0574873e60e54bd4873025b4380116992e4923b9 (diff)
downloadcpython-c51f766ebb5974024d5fc138f71350a6fb30c9d9.zip
cpython-c51f766ebb5974024d5fc138f71350a6fb30c9d9.tar.gz
cpython-c51f766ebb5974024d5fc138f71350a6fb30c9d9.tar.bz2
[3.11] gh-101100: Fix some broken sphinx references (GH-107095). (#107120)
Diffstat (limited to 'Doc/howto/unicode.rst')
-rw-r--r--Doc/howto/unicode.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/howto/unicode.rst b/Doc/howto/unicode.rst
index ca09aee..a5e0998 100644
--- a/Doc/howto/unicode.rst
+++ b/Doc/howto/unicode.rst
@@ -424,8 +424,8 @@ lowercase letters 'ss'.
A second tool is the :mod:`unicodedata` module's
:func:`~unicodedata.normalize` function that converts strings to one
-of several normal forms, where letters followed by a combining
-character are replaced with single characters. :func:`normalize` can
+of several normal forms, where letters followed by a combining character are
+replaced with single characters. :func:`~unicodedata.normalize` can
be used to perform string comparisons that won't falsely report
inequality if two strings use combining characters differently:
@@ -474,8 +474,8 @@ The Unicode Standard also specifies how to do caseless comparisons::
print(compare_caseless(single_char, multiple_chars))
-This will print ``True``. (Why is :func:`NFD` invoked twice? Because
-there are a few characters that make :meth:`casefold` return a
+This will print ``True``. (Why is :func:`!NFD` invoked twice? Because
+there are a few characters that make :meth:`~str.casefold` return a
non-normalized string, so the result needs to be normalized again. See
section 3.13 of the Unicode Standard for a discussion and an example.)