Skip to content

Commit

Permalink
this is for tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed May 24, 2019
1 parent d01ef7d commit a90cdcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/mir/interpret/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ impl<Tag: fmt::Debug, Id: fmt::Debug> fmt::Debug for Scalar<Tag, Id> {
assert_eq!(truncate(bits, Size::from_bytes(size as u64)), bits,
"Scalar value {:#x} exceeds size of {} bytes", bits, size);
// Format as hex number wide enough to fit any value of the given `size`.
// So e.g. bits=20, size=1 will be "0x14", but with size=4 it'll be "0x00000014".
// So bits=20, size=1 will be "0x14", but with size=4 it'll be "0x00000014".
write!(f, "0x{:>0width$x}", bits, width=(size*2) as usize)
}
}
Expand Down

0 comments on commit a90cdcc

Please sign in to comment.