Skip to content

Commit 532bc46

Browse files
committed
Use simplified printing in docs
1 parent b188c9e commit 532bc46

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/guide.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ Disassemble:
2626
In [0]: from pypcode import Context
2727
...: ctx = Context("x86:LE:64:default")
2828
...: dx = ctx.disassemble(b"\x48\x35\x78\x56\x34\x12\xc3")
29-
...: for ins in dx.instructions:
30-
...: print(f"{ins.addr.offset:#x}/{ins.length}: {ins.mnem} {ins.body}")
29+
...: print(dx)
3130

3231
Translate to P-Code:
3332

@@ -36,8 +35,7 @@ Translate to P-Code:
3635
In [0]: from pypcode import Context
3736
...: ctx = Context("x86:LE:64:default")
3837
...: tx = ctx.translate(b"\x48\x35\x78\x56\x34\x12\xc3")
39-
...: for op in tx.ops:
40-
...: print(op)
38+
...: print(tx)
4139

4240
Command Line Usage Example
4341
--------------------------

0 commit comments

Comments
 (0)