Skip to content

Commit 92732bb

Browse files
picnixzskirpichev
andauthored
Apply suggestions from code review
Co-authored-by: Sergey B Kirpichev <[email protected]>
1 parent a61eca5 commit 92732bb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Doc/library/math.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ Floating point arithmetic
256256
When both operands are (signed) NaNs or zeroes, return ``nan`` and ``0``
257257
respectively and the sign of the result is implementation-defined, that
258258
is, :func:`!fmax` is not required to be sensitive to the sign of such
259-
operands (see ISO C11, Annexes F.10.0.3 and F.10.9.2).
259+
operands (see Annex F of the C11 standard, §F.10.0.3 and §F.10.9.2).
260260

261261
.. versionadded:: next
262262

@@ -268,7 +268,7 @@ Floating point arithmetic
268268
When both operands are (signed) NaNs or zeroes, return ``nan`` and ``0``
269269
respectively and the sign of the result is implementation-defined, that
270270
is, :func:`!fmin` is not required to be sensitive to the sign of such
271-
operands (see ISO C11, Annexes F.10.0.3 and F.10.9.3).
271+
operands (see Annex F of the C11 standard, §F.10.0.3 and §F.10.9.3).
272272

273273
.. versionadded:: next
274274

Lib/test/test_math.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ def test_fmax(self):
629629
self.assertRaises(TypeError, math.fmax, 'x', 'y')
630630

631631
self.assertEqual(math.fmax(0., 0.), 0.)
632-
# fmax() does not need to be sensitive to the sign of 0 (F.10.9.2.3).
632+
# fmax() does not need to be sensitive to the sign of 0 (§F.10.9.2).
633633
self.assertIn(math.fmax(0., -0.), {-0., 0.})
634634
self.assertIn(math.fmax(-0., 0.), {-0., 0.})
635635

@@ -673,7 +673,7 @@ def test_fmin(self):
673673
self.assertRaises(TypeError, math.fmin, 'x', 'y')
674674

675675
self.assertEqual(math.fmin(0., 0.), 0.)
676-
# fmin() does not need to be sensitive to the sign of 0 (F.10.9.3.1).
676+
# fmin() does not need to be sensitive to the sign of 0 (§F.10.9.3).
677677
self.assertIn(math.fmin(0., -0.), {-0., 0.})
678678
self.assertIn(math.fmin(-0., 0.), {-0., 0.})
679679

0 commit comments

Comments
 (0)