Skip to content

Commit 6a7596a

Browse files
Rollup merge of rust-lang#34837 - GuillaumeGomez:better_example, r=nagisa
Improve float number example r? @nagisa
2 parents ad7a697 + b10ac8a commit 6a7596a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/num/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2318,7 +2318,7 @@ impl usize {
23182318
/// let num = 12.4_f32;
23192319
/// let inf = f32::INFINITY;
23202320
/// let zero = 0f32;
2321-
/// let sub: f32 = 0.000000000000000000000000000000000000011754942;
2321+
/// let sub: f32 = 1.1754942e-38;
23222322
/// let nan = f32::NAN;
23232323
///
23242324
/// assert_eq!(num.classify(), FpCategory::Normal);

0 commit comments

Comments
 (0)