Skip to content

Commit

Permalink
Change "bytes " => "bytes: "
Browse files Browse the repository at this point in the history
  • Loading branch information
Dentosal committed Aug 10, 2023
1 parent ecf3a4e commit b7a77e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fuel-asm/src/panic_instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ impl PanicInstruction {
/// Helper struct to debug-format a `RawInstruction` in `PanicInstruction::fmt`.
struct InstructionDbg(RawInstruction);
impl fmt::Debug for InstructionDbg {
/// Formats like this: `MOVI { dst: 32, val: 32 } (bytes 72 80 00 20)`}`
/// Formats like this: `MOVI { dst: 32, val: 32 } (bytes: 72 80 00 20)`}`
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match Instruction::try_from(self.0) {
Ok(instr) => write!(f, "{:?}", instr)?,
Err(_) => write!(f, "Unknown")?,
};
write!(f, " (bytes ")?;
write!(f, " (bytes: ")?;
for (i, byte) in self.0.to_be_bytes().iter().enumerate() {
if i != 0 {
write!(f, " ")?;
Expand Down

0 comments on commit b7a77e7

Please sign in to comment.