Skip to content

Commit 1c8b8a9

Browse files
committed
Wordsmithing for consistency with other method definitions
1 parent b9ee0ff commit 1c8b8a9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Doc/library/fractions.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -194,15 +194,15 @@ another rational number, or from a string.
194194

195195
.. method:: __format__(format_spec, /)
196196

197-
This method provides support for float-style formatting of
198-
:class:`Fraction` instances via the :meth:`str.format` method, the
199-
:func:`format` built-in function, or :ref:`Formatted string literals
200-
<f-strings>`. The presentation types ``"e"``, ``"E"``, ``"f"``, ``"F"``,
201-
``"g"``, ``"G"`` and ``"%"`` are supported. For these presentation types,
202-
formatting for a :class:`Fraction` object ``x`` behaves as though the
203-
object ``x`` were first converted to :class:`float` and then formatted
204-
using the float formatting rules, but avoids the loss of precision that
205-
might arise as a result of that conversion.
197+
Provides support for float-style formatting of :class:`Fraction`
198+
instances via the :meth:`str.format` method, the :func:`format` built-in
199+
function, or :ref:`Formatted string literals <f-strings>`. The
200+
presentation types ``"e"``, ``"E"``, ``"f"``, ``"F"``, ``"g"``, ``"G"``
201+
and ``"%"`` are supported. For these presentation types, formatting for a
202+
:class:`Fraction` object ``x`` behaves as though the object ``x`` were
203+
first converted to :class:`float` and then formatted using the float
204+
formatting rules, but avoids the loss of precision that might arise as a
205+
result of that conversion.
206206

207207
Here are some examples::
208208

0 commit comments

Comments
 (0)