Remove confusing paragraph from Trait Objects
It isn't really neccesary, but is pretty dense. Fixes #25956
This commit is contained in:
parent
0d82fb55db
commit
75ffcd8e59
1 changed files with 0 additions and 4 deletions
|
@ -300,7 +300,3 @@ let y = TraitObject {
|
||||||
// y.method();
|
// y.method();
|
||||||
(y.vtable.method)(y.data);
|
(y.vtable.method)(y.data);
|
||||||
```
|
```
|
||||||
|
|
||||||
If `b` or `y` were owning trait objects (`Box<Foo>`), there would be a
|
|
||||||
`(b.vtable.destructor)(b.data)` (respectively `y`) call when they went out of
|
|
||||||
scope.
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue