Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Aug 6, 2024
1 parent f8c3fed commit 422c52e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions library/core/src/num/dec2flt/float.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
//! Helper trait for generic float types.
use core::f64;

use crate::fmt::{Debug, LowerExp};
use crate::num::FpCategory;
use crate::ops::{self, Add, Div, Mul, Neg};

use core::f64;

pub trait CastInto<T: Copy>: Copy {
fn cast(self) -> T;
}
Expand Down
4 changes: 2 additions & 2 deletions library/core/src/num/dec2flt/number.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ impl Number {
&& !self.many_digits
}

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

0 comments on commit 422c52e

Please sign in to comment.