Skip to content

Commit ebeb6b8

Browse files
Rollup merge of rust-lang#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'
2 parents be3723c + 2f5ce8e commit ebeb6b8

File tree

1 file changed

+1
-1
lines changed
  • library/core/src/num/dec2flt

1 file changed

+1
-1
lines changed

library/core/src/num/dec2flt/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! # Problem statement
44
//!
55
//! We are given a decimal string such as `12.34e56`. This string consists of integral (`12`),
6-
//! fractional (`45`), and exponent (`56`) parts. All parts are optional and interpreted as zero
6+
//! fractional (`34`), and exponent (`56`) parts. All parts are optional and interpreted as zero
77
//! when missing.
88
//!
99
//! We seek the IEEE 754 floating point number that is closest to the exact value of the decimal

0 commit comments

Comments
 (0)