Skip to content

Commit 422c52e

Browse files
committed
Update docs
1 parent f8c3fed commit 422c52e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
//! Helper trait for generic float types.
22
3+
use core::f64;
4+
35
use crate::fmt::{Debug, LowerExp};
46
use crate::num::FpCategory;
57
use crate::ops::{self, Add, Div, Mul, Neg};
68

7-
use core::f64;
8-
99
pub trait CastInto<T: Copy>: Copy {
1010
fn cast(self) -> T;
1111
}

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ impl Number {
4141
&& !self.many_digits
4242
}
4343

44-
/// The fast path algorithm to turn into an exact float representation, using machine-sized
45-
/// integers and floats.
44+
/// Try turning the decimal into an exact float representation, using machine-sized integers
45+
/// and floats.
4646
///
4747
/// This is extracted into a separate function so that it can be attempted before constructing
4848
/// a Decimal. This only works if both the mantissa and the exponent

0 commit comments

Comments
 (0)