File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 99//! Their definition should always match the ABI defined in
1010//! `rustc_middle::ty::layout`.
1111
12- /// The representation of a trait object like `&SomeTrait`.
12+ /// The representation of a trait object like `&dyn SomeTrait`.
1313///
14- /// This struct has the same layout as types like `&SomeTrait` and
14+ /// This struct has the same layout as types like `&dyn SomeTrait` and
1515/// `Box<dyn AnotherTrait>`.
1616///
1717/// `TraitObject` is guaranteed to match layouts, but it is not the
1818/// type of trait objects (e.g., the fields are not directly accessible
19- /// on a `&SomeTrait`) nor does it control that layout (changing the
20- /// definition will not change the layout of a `&SomeTrait`). It is
19+ /// on a `&dyn SomeTrait`) nor does it control that layout (changing the
20+ /// definition will not change the layout of a `&dyn SomeTrait`). It is
2121/// only designed to be used by unsafe code that needs to manipulate
2222/// the low-level details.
2323///
You can’t perform that action at this time.
0 commit comments