Skip to content

Commit

Permalink
Tiny readme change to use a pointer to instr in fd_format example.
Browse files Browse the repository at this point in the history
  • Loading branch information
J-MR-T authored May 9, 2023
1 parent 2582ac7 commit f9ccffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ int ret = fd_decode(buffer, sizeof(buffer), 64, 0, &instr);
// Relevant properties of instructions can now be queried using the FD_* macros.
// Or, we can format the instruction to a string buffer:
char fmtbuf[64];
fd_format(instr, fmtbuf, sizeof(fmtbuf));
fd_format(&instr, fmtbuf, sizeof(fmtbuf));
// fmtbuf now reads: "xchg r8, rax"
```
Expand Down

0 comments on commit f9ccffc

Please sign in to comment.