No need to mention how these fields are used

This commit is contained in:
Cesar Eduardo Barros 2017-01-19 22:45:57 -02:00
parent 465d24e1a0
commit c7b092b47d

View file

@ -263,8 +263,7 @@ any resources of the vtables type: for `u8` it is trivial, but for `String` i
will free the memory. This is necessary for owning trait objects like
`Box<Foo>`, which need to clean-up both the `Box` allocation as well as the
internal type when they go out of scope. The `size` and `align` fields store
the size of the erased type, and its alignment requirements; these are
used by the `std::mem::size_of_val` and `std::mem::align_of_val` functions.
the size of the erased type, and its alignment requirements.
Suppose weve got some values that implement `Foo`. The explicit form of
construction and use of `Foo` trait objects might look a bit like (ignoring the