summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-03-26 10:58:47 (GMT)
committerGitHub <noreply@github.com>2018-03-26 10:58:47 (GMT)
commite3e8bdc5d30c8814b00e88f214cf94bf4d69a766 (patch)
treeeb412b130a0c7b36384c63842065146926808d7e
parentedd541897b9c28ee0d0f0131746aa5f19665a104 (diff)
downloadcpython-e3e8bdc5d30c8814b00e88f214cf94bf4d69a766.zip
cpython-e3e8bdc5d30c8814b00e88f214cf94bf4d69a766.tar.gz
cpython-e3e8bdc5d30c8814b00e88f214cf94bf4d69a766.tar.bz2
Fix typo and edit for clarity in the docstrings of sys.float_info. (GH-2251)
(cherry picked from commit 0301c9bdd1ebd788d1334cf3fe06c48f35bab0dc) Co-authored-by: Stefano Taschini <taschini@users.noreply.github.com>
-rw-r--r--Objects/floatobject.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c
index 360ef94..37dd67e 100644
--- a/Objects/floatobject.c
+++ b/Objects/floatobject.c
@@ -1,4 +1,3 @@
-
/* Float object implementation */
/* XXX There should be overflow checks here, but it's hard to check
@@ -80,7 +79,7 @@ static PyStructSequence_Field floatinfo_fields[] = {
"is representable"},
{"max_10_exp", "DBL_MAX_10_EXP -- maximum int e such that 10**e "
"is representable"},
- {"min", "DBL_MIN -- Minimum positive normalizer float"},
+ {"min", "DBL_MIN -- Minimum positive normalized float"},
{"min_exp", "DBL_MIN_EXP -- minimum int e such that radix**(e-1) "
"is a normalized float"},
{"min_10_exp", "DBL_MIN_10_EXP -- minimum int e such that 10**e is "
@@ -90,7 +89,7 @@ static PyStructSequence_Field floatinfo_fields[] = {
{"epsilon", "DBL_EPSILON -- Difference between 1 and the next "
"representable float"},
{"radix", "FLT_RADIX -- radix of exponent"},
- {"rounds", "FLT_ROUNDS -- addition rounds"},
+ {"rounds", "FLT_ROUNDS -- rounding mode"},
{0}
};