File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -860,10 +860,10 @@ pub trait Binary {
860
860
/// Basic usage with `i32`:
861
861
///
862
862
/// ```
863
- /// let x = 42; // 42 is '2a' in hex
863
+ /// let y = 42; // 42 is '2a' in hex
864
864
///
865
- /// assert_eq!(format!("{x :x}"), "2a");
866
- /// assert_eq!(format!("{x :#x}"), "0x2a");
865
+ /// assert_eq!(format!("{y :x}"), "2a");
866
+ /// assert_eq!(format!("{y :#x}"), "0x2a");
867
867
///
868
868
/// assert_eq!(format!("{:x}", -16), "fffffff0");
869
869
/// ```
@@ -915,10 +915,10 @@ pub trait LowerHex {
915
915
/// Basic usage with `i32`:
916
916
///
917
917
/// ```
918
- /// let x = 42; // 42 is '2A' in hex
918
+ /// let y = 42; // 42 is '2A' in hex
919
919
///
920
- /// assert_eq!(format!("{x :X}"), "2A");
921
- /// assert_eq!(format!("{x :#X}"), "0x2A");
920
+ /// assert_eq!(format!("{y :X}"), "2A");
921
+ /// assert_eq!(format!("{y :#X}"), "0x2A");
922
922
///
923
923
/// assert_eq!(format!("{:X}", -16), "FFFFFFF0");
924
924
/// ```
You can’t perform that action at this time.
0 commit comments