Skip to content

Commit b10ac8a

Browse files
Improve float number example
1 parent 3cc3ad1 commit b10ac8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/num/mod.rs

+1-1
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)