@@ -2092,11 +2092,14 @@ $to_xe_bytes_doc,
2092
2092
2093
2093
```
2094
2094
let bytes = " , $swap_op, stringify!( $SelfT) , ".to_ne_bytes();
2095
- assert_eq!(bytes, if cfg!(target_endian = \" big\" ) {
2095
+ assert_eq!(
2096
+ bytes,
2097
+ if cfg!(target_endian = \" big\" ) {
2096
2098
" , $be_bytes, "
2097
2099
} else {
2098
2100
" , $le_bytes, "
2099
- });
2101
+ }
2102
+ );
2100
2103
```" ) ,
2101
2104
#[ stable( feature = "int_to_from_bytes" , since = "1.32.0" ) ]
2102
2105
#[ rustc_const_unstable( feature = "const_int_conversion" ) ]
@@ -2188,10 +2191,10 @@ $from_xe_bytes_doc,
2188
2191
2189
2192
```
2190
2193
let value = " , stringify!( $SelfT) , "::from_ne_bytes(if cfg!(target_endian = \" big\" ) {
2191
- " , $be_bytes, "
2192
- } else {
2193
- " , $le_bytes, "
2194
- });
2194
+ " , $be_bytes, "
2195
+ } else {
2196
+ " , $le_bytes, "
2197
+ });
2195
2198
assert_eq!(value, " , $swap_op, ");
2196
2199
```
2197
2200
@@ -3911,11 +3914,14 @@ $to_xe_bytes_doc,
3911
3914
3912
3915
```
3913
3916
let bytes = " , $swap_op, stringify!( $SelfT) , ".to_ne_bytes();
3914
- assert_eq!(bytes, if cfg!(target_endian = \" big\" ) {
3917
+ assert_eq!(
3918
+ bytes,
3919
+ if cfg!(target_endian = \" big\" ) {
3915
3920
" , $be_bytes, "
3916
3921
} else {
3917
3922
" , $le_bytes, "
3918
- });
3923
+ }
3924
+ );
3919
3925
```" ) ,
3920
3926
#[ stable( feature = "int_to_from_bytes" , since = "1.32.0" ) ]
3921
3927
#[ rustc_const_unstable( feature = "const_int_conversion" ) ]
@@ -4007,10 +4013,10 @@ $from_xe_bytes_doc,
4007
4013
4008
4014
```
4009
4015
let value = " , stringify!( $SelfT) , "::from_ne_bytes(if cfg!(target_endian = \" big\" ) {
4010
- " , $be_bytes, "
4011
- } else {
4012
- " , $le_bytes, "
4013
- });
4016
+ " , $be_bytes, "
4017
+ } else {
4018
+ " , $le_bytes, "
4019
+ });
4014
4020
assert_eq!(value, " , $swap_op, ");
4015
4021
```
4016
4022
0 commit comments