From ba904fdcd8cbb57d0985a1274571d5cbd95a2d83 Mon Sep 17 00:00:00 2001 From: Jeff Date: Tue, 1 Oct 2024 20:27:28 -0400 Subject: [PATCH] Clean up disassembler output --- dust-lang/src/chunk.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dust-lang/src/chunk.rs b/dust-lang/src/chunk.rs index 68628ca..abd8b3b 100644 --- a/dust-lang/src/chunk.rs +++ b/dust-lang/src/chunk.rs @@ -341,8 +341,8 @@ impl<'a> ChunkDisassembler<'a> { "", "Instructions", "------------", - "INDEX BYTECODE OPERATION INFO JUMP POSITION", - "----- -------- --------------- ------------------------- -------------- --------", + "INDEX BYTECODE OPERATION INFO JUMP POSITION", + "----- -------- --------------- ------------------------- -------- --------", ]; const CONSTANT_HEADER: [&'static str; 5] = [ @@ -445,7 +445,7 @@ impl<'a> ChunkDisassembler<'a> { }; let bytecode = u32::from(instruction); let instruction_display = format!( - "{index:<5} {bytecode:<08X} {operation:15} {info:25} {jump_offset:14} {position:8}" + "{index:<5} {bytecode:<08X} {operation:15} {info:25} {jump_offset:8} {position:8}" ); disassembly.push_str(¢er(&instruction_display));