summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/conversion.rst
diff options
context:
space:
mode:
authorStéphane Wirtel <stephane@wirtel.be>2018-10-26 10:52:11 (GMT)
committerVictor Stinner <vstinner@redhat.com>2018-10-26 10:52:11 (GMT)
commite483f02423917dc4dfd25f46e5b9e6fce304777d (patch)
tree6171799d4ddcc72b7364a62b3f08a1fe124e8f6e /Doc/c-api/conversion.rst
parentddb961d2abe5d5fde76d85b21a77e4e91e0043ad (diff)
downloadcpython-e483f02423917dc4dfd25f46e5b9e6fce304777d.zip
cpython-e483f02423917dc4dfd25f46e5b9e6fce304777d.tar.gz
cpython-e483f02423917dc4dfd25f46e5b9e6fce304777d.tar.bz2
bpo-35044, doc: Use the :exc: role for the exceptions (GH-10037)
Diffstat (limited to 'Doc/c-api/conversion.rst')
-rw-r--r--Doc/c-api/conversion.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/conversion.rst b/Doc/c-api/conversion.rst
index 9566d9d..c46722d 100644
--- a/Doc/c-api/conversion.rst
+++ b/Doc/c-api/conversion.rst
@@ -60,7 +60,7 @@ The following functions provide locale-independent string to number conversions.
The conversion is independent of the current locale.
If ``endptr`` is ``NULL``, convert the whole string. Raise
- ValueError and return ``-1.0`` if the string is not a valid
+ :exc:`ValueError` and return ``-1.0`` if the string is not a valid
representation of a floating-point number.
If endptr is not ``NULL``, convert as much of the string as