about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonas Schievink <jonasschievink@gmail.com>2021-01-23 20:16:19 +0100
committerGitHub <noreply@github.com>2021-01-23 20:16:19 +0100
commitebeb6b8b26f78c2c1a412a2e0e65e2e1f5ebc111 (patch)
tree2656f7f38ceb24cc242b3f814288924f8e9bc7ac
parentbe3723c4884fcee61eea077c369876ce9664b65e (diff)
parent2f5ce8e802aab512f7437bbe3f1192b3104989ee (diff)
downloadrust-ebeb6b8b26f78c2c1a412a2e0e65e2e1f5ebc111.tar.gz
rust-ebeb6b8b26f78c2c1a412a2e0e65e2e1f5ebc111.zip
Rollup merge of #81301 - davidgu:patch-1, r=jonas-schievink
Fix small typo

Fractional part of `12.34e56` seems to be incorrectly stated as '45' and not '34'
-rw-r--r--library/core/src/num/dec2flt/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/num/dec2flt/mod.rs b/library/core/src/num/dec2flt/mod.rs
index 039112e9f34..91c61f814e1 100644
--- a/library/core/src/num/dec2flt/mod.rs
+++ b/library/core/src/num/dec2flt/mod.rs
@@ -3,7 +3,7 @@
 //! # Problem statement
 //!
 //! We are given a decimal string such as `12.34e56`. This string consists of integral (`12`),
-//! fractional (`45`), and exponent (`56`) parts. All parts are optional and interpreted as zero
+//! fractional (`34`), and exponent (`56`) parts. All parts are optional and interpreted as zero
 //! when missing.
 //!
 //! We seek the IEEE 754 floating point number that is closest to the exact value of the decimal