]> git.lizzy.rs Git - rust.git/blobdiff - src/libcore/raw.rs
Various minor/cosmetic improvements to code
[rust.git] / src / libcore / raw.rs
index 495b9afe86023ef6c06b3b615680ad5afc174c91..4f1af8bf110e4c12987c0e326c27c768694728d1 100644 (file)
 /// The representation of a trait object like `&SomeTrait`.
 ///
 /// This struct has the same layout as types like `&SomeTrait` and
-/// `Box<AnotherTrait>`.
+/// `Box<dyn AnotherTrait>`.
 ///
 /// `TraitObject` is guaranteed to match layouts, but it is not the
-/// type of trait objects (e.g. the fields are not directly accessible
+/// type of trait objects (e.g., the fields are not directly accessible
 /// on a `&SomeTrait`) nor does it control that layout (changing the
 /// definition will not change the layout of a `&SomeTrait`). It is
 /// only designed to be used by unsafe code that needs to manipulate