Skip to content

Commit 00382a5

Browse files
committed
Auto merge of #26317 - steveklabnik:gh25956, r=alexcrichton
It isn't really neccesary, but is pretty dense. Fixes #25956
2 parents f6d53af + 75ffcd8 commit 00382a5

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/doc/trpl/trait-objects.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,3 @@ let y = TraitObject {
300300
// y.method();
301301
(y.vtable.method)(y.data);
302302
```
303-
304-
If `b` or `y` were owning trait objects (`Box<Foo>`), there would be a
305-
`(b.vtable.destructor)(b.data)` (respectively `y`) call when they went out of
306-
scope.

0 commit comments

Comments
 (0)