Skip to content

Commit 83b7adb

Browse files
Apply suggestions from code review
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
1 parent c525e92 commit 83b7adb

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Doc/c-api/float.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,16 +198,15 @@ is the IEEE 754 binary64 double precision format, although the NaN type may
198198
not be preserved on some platforms while unpacking (signaling NaNs become quiet
199199
NaNs), for example on x86 systems in 32-bit mode.
200200
201-
It's assumed, that the :c:expr:`double` type has the IEEE 754 binary64 double
201+
It's assumed that the :c:expr:`double` type has the IEEE 754 binary64 double
202202
precision format. What happens if it's not true is partly accidental (alas).
203203
On non-IEEE platforms with more precision, or larger dynamic range, than IEEE
204204
754 supports, not all values can be packed; on non-IEEE platforms with less
205205
precision, or smaller dynamic range, not all values can be unpacked. The
206206
packing of special numbers like INFs and NaNs (if such things exist on the
207-
platform) may be not handled correctly, and attempting to unpack a bytes string
207+
platform) may not be handled correctly, and attempting to unpack a bytes string
208208
containing an IEEE INF or NaN may raise an exception.
209209
210-
211210
.. versionadded:: 3.11
212211
213212
Pack functions
@@ -224,7 +223,7 @@ Return value: ``0`` if all is OK, ``-1`` if error (and an exception is set,
224223
most likely :exc:`OverflowError`).
225224
226225
.. impl-detail::
227-
The :c:func:`PyFloat_Pack8` function always succeeds in the CPython.
226+
The :c:func:`PyFloat_Pack8` function always succeeds in CPython.
228227
229228
.. c:function:: int PyFloat_Pack2(double x, char *p, int le)
230229
@@ -254,7 +253,7 @@ Return value: The unpacked double. On error, this is ``-1.0`` and
254253
:exc:`OverflowError`).
255254
256255
.. impl-detail::
257-
These functions always succeed in the CPython.
256+
These functions always succeed in CPython.
258257
259258
.. c:function:: double PyFloat_Unpack2(const char *p, int le)
260259

0 commit comments

Comments
 (0)