Skip to content

Commit 7e11733

Browse files
Merge pull request #40 from Ahbar1999/main
fixed the fat pointer layout diagram in ch02 of rust-patterns-book
2 parents 1484bf3 + 2e138e5 commit 7e11733

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

rust-patterns-book/src/ch02-traits-in-depth.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -335,13 +335,13 @@ A `&dyn Trait` (or `Box<dyn Trait>`) is a **fat pointer** — two machine words:
335335
│ ↓ │ ↓ │
336336
│ ┌─────────┐ │ ┌──────────────────────────────┐ │
337337
│ │ Circle │ │ │ vtable for <Circle as │ │
338-
│ │ { │ │ │ Drawable> │ │
338+
│ │ { │ │ │ Drawable> │ │
339339
│ │ r: 5.0 │ │ │ │ │
340340
│ │ } │ │ │ drop_in_place: 0x7f...a0 │ │
341-
│ └─────────┘ │ │ size: 8 │ │
342-
│ │ │ align: 8 │ │
343-
│ │ │ draw: 0x7f...b4 │ │
344-
│ │ │ bounding_box: 0x7f...c8 │ │
341+
│ └─────────┘ │ │ size: 8 │ │
342+
│ │ │ align: 8 │ │
343+
│ │ │ draw: 0x7f...b4 │ │
344+
│ │ │ bounding_box: 0x7f...c8 │ │
345345
│ │ └──────────────────────────────┘ │
346346
└──────────────┴───────────────────────────────────┘
347347
```

0 commit comments

Comments
 (0)