Change variable name

This commit is contained in:
David Peter committed 2018-12-02 20:41:11 +01:00
1 parent 648e96dbaf
commit b5704f660c
1 file changed
+2 -2
+2 -2
View File
@@ -115,8 +115,8 @@ impl<'a> Printer<'a> {
fn print_byte(&mut self, b: u8) -> io::Result<()> {
if self.idx % 16 == 1 {
let byte_str = format!("{:08x}", self.idx - 1);
write!(self.stdout, "│{}│ ", COLOR_OFFSET.paint(byte_str))?;
let offset_str = format!("{:08x}", self.idx - 1);
write!(self.stdout, "│{}│ ", COLOR_OFFSET.paint(offset_str))?;
}
let byte_str = format!("{:02x} ", b);