remove repeated slices in 128-bit endianness examples
This commit is contained in:
parent
25655ae215
commit
1ef31ecdd9
16
src/lib.rs
16
src/lib.rs
|
@ -524,11 +524,11 @@ fixed! {
|
|||
fixed! {
|
||||
"A 128-bit fixed-point unsigned",
|
||||
FixedU128(u128, LeEqU128, "128", "127", "126", "125", "124"),
|
||||
16, "0x1234_5678_9ABC_DEF0_1234_5678_9ABC_DEF0",
|
||||
"0xF0DE_BC9A_7856_3412_F0DE_BC9A_7856_3412",
|
||||
16, "0x1234_5678_9ABC_DEF0_0102_0304_0506_0708",
|
||||
"0x0807_0605_0403_0201_F0DE_BC9A_7856_3412",
|
||||
"[0x12, 0x34, 0x56, 0x78, 0x9A, 0xBC, 0xDE, 0xF0, \
|
||||
0x12, 0x34, 0x56, 0x78, 0x9A, 0xBC, 0xDE, 0xF0]",
|
||||
"[0xF0, 0xDE, 0xBC, 0x9A, 0x78, 0x56, 0x34, 0x12, \
|
||||
0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08]",
|
||||
"[0x08, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, 0x01, \
|
||||
0xF0, 0xDE, 0xBC, 0x9A, 0x78, 0x56, 0x34, 0x12]",
|
||||
FixedU128, u128, Unsigned,
|
||||
U128, U127, U126, U125,
|
||||
|
@ -571,11 +571,11 @@ fixed! {
|
|||
fixed! {
|
||||
"A 128-bit fixed-point signed",
|
||||
FixedI128(i128, LeEqU128, "128", "127", "126", "125", "124"),
|
||||
16, "0x1234_5678_9ABC_DEF0_1234_5678_9ABC_DEF0",
|
||||
"0xF0DE_BC9A_7856_3412_F0DE_BC9A_7856_3412",
|
||||
16, "0x1234_5678_9ABC_DEF0_0102_0304_0506_0708",
|
||||
"0x0807_0605_0403_0201_F0DE_BC9A_7856_3412",
|
||||
"[0x12, 0x34, 0x56, 0x78, 0x9A, 0xBC, 0xDE, 0xF0, \
|
||||
0x12, 0x34, 0x56, 0x78, 0x9A, 0xBC, 0xDE, 0xF0]",
|
||||
"[0xF0, 0xDE, 0xBC, 0x9A, 0x78, 0x56, 0x34, 0x12, \
|
||||
0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08]",
|
||||
"[0x08, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, 0x01, \
|
||||
0xF0, 0xDE, 0xBC, 0x9A, 0x78, 0x56, 0x34, 0x12]",
|
||||
FixedU128, u128, Signed,
|
||||
U127, U126, U125, U124,
|
||||
|
|
Loading…
Reference in New Issue