summaryrefslogtreecommitdiff
path: root/Doc/glossary.rst
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-10-26 03:56:28 -0700
committerGitHub <noreply@github.com>2018-10-26 03:56:28 -0700
commitec10b70ea66e738ccb5c28f75a9c5d2b1c197de7 (patch)
tree38f85e351994cf64004539e53755c7d1f90aed12 /Doc/glossary.rst
parent9a75b8470a2e0de5406edcabba140f023c99c6a9 (diff)
downloadcpython-git-ec10b70ea66e738ccb5c28f75a9c5d2b1c197de7.tar.gz
bpo-35044, doc: Use the :exc: role for the exceptions (GH-10037)
(cherry picked from commit e483f02423917dc4dfd25f46e5b9e6fce304777d) Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
Diffstat (limited to 'Doc/glossary.rst')
-rw-r--r--Doc/glossary.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst
index 16fc7f0783..b8e773741c 100644
--- a/Doc/glossary.rst
+++ b/Doc/glossary.rst
@@ -200,7 +200,7 @@ Glossary
``int(3.15)`` converts the floating point number to the integer ``3``, but
in ``3+4.5``, each argument is of a different type (one int, one float),
and both must be converted to the same type before they can be added or it
- will raise a ``TypeError``. Without coercion, all arguments of even
+ will raise a :exc:`TypeError`. Without coercion, all arguments of even
compatible types would have to be normalized to the same value by the
programmer, e.g., ``float(3)+4.5`` rather than just ``3+4.5``.