Skip to content

Commit a1e71fd

Browse files
committed
dec2flt: Rename Integer to Int
This is more consistent with what the trait is called elsewhere in tree (specifically compiler-builtins and test-float-parse).
1 parent 8ecf216 commit a1e71fd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • library/core/src/num/imp/dec2flt

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub trait CastInto<T: Copy>: Copy {
1212
}
1313

1414
/// Collection of traits that allow us to be generic over integer size.
15-
pub trait Integer:
15+
pub trait Int:
1616
Sized
1717
+ Clone
1818
+ Copy
@@ -37,7 +37,7 @@ macro_rules! int {
3737
}
3838
}
3939

40-
impl Integer for $ty {
40+
impl Int for $ty {
4141
const ZERO: Self = 0;
4242
const ONE: Self = 1;
4343
}
@@ -68,7 +68,7 @@ pub trait RawFloat:
6868
+ Debug
6969
{
7070
/// The unsigned integer with the same size as the float
71-
type Int: Integer + Into<u64>;
71+
type Int: Int + Into<u64>;
7272

7373
/* general constants */
7474

0 commit comments

Comments
 (0)