mirror of
https://github.com/sharkdp/hexyl.git
synced 2026-10-26 20:16:31 +00:00
Change variable name
This commit is contained in:
1 parent
648e96dbaf
commit
b5704f660c
1 file changed
+2
-2
+2
-2
@@ -115,8 +115,8 @@ impl<'a> Printer<'a> {
|
|||||||
|
|
||||||
fn print_byte(&mut self, b: u8) -> io::Result<()> {
|
fn print_byte(&mut self, b: u8) -> io::Result<()> {
|
||||||
if self.idx % 16 == 1 {
|
if self.idx % 16 == 1 {
|
||||||
let byte_str = format!("{:08x}", self.idx - 1);
|
let offset_str = format!("{:08x}", self.idx - 1);
|
||||||
write!(self.stdout, "│{}│ ", COLOR_OFFSET.paint(byte_str))?;
|
write!(self.stdout, "│{}│ ", COLOR_OFFSET.paint(offset_str))?;
|
||||||
}
|
}
|
||||||
|
|
||||||
let byte_str = format!("{:02x} ", b);
|
let byte_str = format!("{:02x} ", b);
|
||||||
|
|||||||
Reference in new issue
Block a user