Skip to content

Commit 88e52ac

Browse files
[3.14] Docs: fix a form error and a grammatical error in float.rst (GH-140989) (#146012)
Docs: fix a form error and a grammatical error in float.rst (GH-140989) (cherry picked from commit 70397fd) Co-authored-by: RayXu <xu_ruihong2009@163.com>
1 parent a1f2fef commit 88e52ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/c-api/float.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ NaNs (if such things exist on the platform) isn't handled correctly, and
194194
attempting to unpack a bytes string containing an IEEE INF or NaN will raise an
195195
exception.
196196
197-
Note that NaNs type may not be preserved on IEEE platforms (signaling NaN become
198-
quiet NaN), for example on x86 systems in 32-bit mode.
197+
Note that NaN type may not be preserved on IEEE platforms (signaling NaNs become
198+
quiet NaNs), for example on x86 systems in 32-bit mode.
199199
200200
On non-IEEE platforms with more precision, or larger dynamic range, than IEEE
201201
754 supports, not all values can be packed; on non-IEEE platforms with less
@@ -209,7 +209,7 @@ Pack functions
209209
210210
The pack routines write 2, 4 or 8 bytes, starting at *p*. *le* is an
211211
:c:expr:`int` argument, non-zero if you want the bytes string in little-endian
212-
format (exponent last, at ``p+1``, ``p+3``, or ``p+6`` ``p+7``), zero if you
212+
format (exponent last, at ``p+1``, ``p+3``, or ``p+6`` and ``p+7``), zero if you
213213
want big-endian format (exponent first, at *p*). The :c:macro:`PY_BIG_ENDIAN`
214214
constant can be used to use the native endian: it is equal to ``1`` on big
215215
endian processor, or ``0`` on little endian processor.

0 commit comments

Comments
 (0)