Skip to content

Commit c7b092b

Browse files
committed
No need to mention how these fields are used
1 parent 465d24e commit c7b092b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/doc/book/trait-objects.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,7 @@ any resources of the vtable’s type: for `u8` it is trivial, but for `String` i
263263
will free the memory. This is necessary for owning trait objects like
264264
`Box<Foo>`, which need to clean-up both the `Box` allocation as well as the
265265
internal type when they go out of scope. The `size` and `align` fields store
266-
the size of the erased type, and its alignment requirements; these are
267-
used by the `std::mem::size_of_val` and `std::mem::align_of_val` functions.
266+
the size of the erased type, and its alignment requirements.
268267

269268
Suppose we’ve got some values that implement `Foo`. The explicit form of
270269
construction and use of `Foo` trait objects might look a bit like (ignoring the

0 commit comments

Comments
 (0)