diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-07-28 10:35:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-28 10:35:20 (GMT) |
commit | 0f42f41ea804e76bdb72c012d13b45a048e46c36 (patch) | |
tree | 0dc8017d3e745317ee2912bc80f723c250dd6a5d /Doc/library/fractions.rst | |
parent | 3f167de440f65eb03f795e33b98cf3e84627e213 (diff) | |
download | cpython-0f42f41ea804e76bdb72c012d13b45a048e46c36.zip cpython-0f42f41ea804e76bdb72c012d13b45a048e46c36.tar.gz cpython-0f42f41ea804e76bdb72c012d13b45a048e46c36.tar.bz2 |
[3.12] gh-107091: Fix some uses of :const: role (GH-107379) (GH-107384)
It is for references, not for literals.
(cherry picked from commit 0aa58fa7a62cd0ee7ec27fa87122425aeff0467d)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Doc/library/fractions.rst')
-rw-r--r-- | Doc/library/fractions.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/fractions.rst b/Doc/library/fractions.rst index fe2e8ab..509c636 100644 --- a/Doc/library/fractions.rst +++ b/Doc/library/fractions.rst @@ -25,7 +25,7 @@ another rational number, or from a string. The first version requires that *numerator* and *denominator* are instances of :class:`numbers.Rational` and returns a new :class:`Fraction` instance - with value ``numerator/denominator``. If *denominator* is :const:`0`, it + with value ``numerator/denominator``. If *denominator* is ``0``, it raises a :exc:`ZeroDivisionError`. The second version requires that *other_fraction* is an instance of :class:`numbers.Rational` and returns a :class:`Fraction` instance with the same value. The next two versions accept |