diff options
author | Éric Araujo <merwok@netwok.org> | 2014-03-12 23:51:00 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2014-03-12 23:51:00 (GMT) |
commit | fa5e6e4773ea959a7cc354d54c50df507cf005c3 (patch) | |
tree | 31b2a5ad1a614394e303e171233c55d94646317f /Doc/library/fractions.rst | |
parent | d0fc83d5ebf860664ab2156549d3eb98a50212cd (diff) | |
download | cpython-fa5e6e4773ea959a7cc354d54c50df507cf005c3.zip cpython-fa5e6e4773ea959a7cc354d54c50df507cf005c3.tar.gz cpython-fa5e6e4773ea959a7cc354d54c50df507cf005c3.tar.bz2 |
Fix note markup (#16805).
Patch by Tshepang Lekhonkhobe, reviewed by Georg Brandl.
Diffstat (limited to 'Doc/library/fractions.rst')
-rw-r--r-- | Doc/library/fractions.rst | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Doc/library/fractions.rst b/Doc/library/fractions.rst index fba199b..c2c7401 100644 --- a/Doc/library/fractions.rst +++ b/Doc/library/fractions.rst @@ -99,7 +99,9 @@ another rational number, or from a string. value of *flt*, which must be a :class:`float`. Beware that ``Fraction.from_float(0.3)`` is not the same value as ``Fraction(3, 10)`` - .. note:: From Python 3.2 onwards, you can also construct a + .. note:: + + From Python 3.2 onwards, you can also construct a :class:`Fraction` instance directly from a :class:`float`. @@ -108,7 +110,9 @@ another rational number, or from a string. This class method constructs a :class:`Fraction` representing the exact value of *dec*, which must be a :class:`decimal.Decimal` instance. - .. note:: From Python 3.2 onwards, you can also construct a + .. note:: + + From Python 3.2 onwards, you can also construct a :class:`Fraction` instance directly from a :class:`decimal.Decimal` instance. |