Skip to content

Commit

Permalink
Rollup merge of rust-lang#81301 - davidgu:patch-1, r=jonas-schievink
Browse files Browse the repository at this point in the history
Fix small typo

Fractional part of `12.34e56` seems to be incorrectly stated as '45' and not '34'
  • Loading branch information
jonas-schievink authored Jan 23, 2021
2 parents be3723c + 2f5ce8e commit ebeb6b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/num/dec2flt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ebeb6b8

Please sign in to comment.